Skip to content

Commit

Permalink
Revert "Fixes Typescript Defs based on CoreManager Changes."
Browse files Browse the repository at this point in the history
This reverts commit 25441f9.
  • Loading branch information
mortenmo committed May 5, 2024
1 parent 25441f9 commit 306792c
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 16 deletions.
8 changes: 4 additions & 4 deletions types/ObjectStateMutations.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ export function mergeFirstPendingState(pendingOps: Array<OpsMap>): void;
export function estimateAttribute(serverData: AttributeMap, pendingOps: Array<OpsMap>, className: string, id: string | null, attr: string): mixed;
export function estimateAttributes(serverData: AttributeMap, pendingOps: Array<OpsMap>, className: string, id: string | null): AttributeMap;
export function commitServerChanges(serverData: AttributeMap, objectCache: ObjectCache, changes: AttributeMap): void;
export type AttributeMap = {
type AttributeMap = {
[attr: string]: any;
};
export type OpsMap = {
type OpsMap = {
[attr: string]: Op;
};
export type ObjectCache = {
type ObjectCache = {
[attr: string]: string;
};
export type State = {
type State = {
serverData: AttributeMap;
pendingOps: OpsMap[];
objectCache: ObjectCache;
Expand Down
6 changes: 1 addition & 5 deletions types/ParseFile.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-nocheck
export type FileSource = {
type FileSource = {
format: "file";
file: Blob;
type: string;
Expand Down Expand Up @@ -179,7 +179,3 @@ type Base64 = {
type Uri = {
uri: string;
};
export type FileSaveOptions = FullOptions & {
metadata?: { [key: string]: any },
tags?: { [key: string]: any },
};
2 changes: 0 additions & 2 deletions types/ParseHooks.d.ts

This file was deleted.

4 changes: 2 additions & 2 deletions types/ParseQuery.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
type WhereClause = {
[attr: string]: mixed;
};
export type QueryJSON = {
type QueryJSON = {
where: WhereClause;
watch?: string;
include?: string;
Expand Down Expand Up @@ -918,7 +918,7 @@ declare class ParseQuery {
cancel(): ParseQuery;
_setRequestTask(options: any): void;
/**
* Sets a comment to the query so that the query
* Sets a comment to the query so that the query
* can be identified when using a the profiler for MongoDB.
*
* @param {string} value a comment can make your profile data easier to interpret and trace.
Expand Down
2 changes: 1 addition & 1 deletion types/ParseUser.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-nocheck
export type AuthData = {
type AuthData = {
[key: string]: mixed;
};
export default ParseUser;
Expand Down
2 changes: 1 addition & 1 deletion types/Push.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function send(data: PushData, options?: FullOptions): Promise<any>;
* @returns {Parse.Object} Status of Push.
*/
export function getPushStatus(pushStatusId: string, options?: FullOptions): Promise<string>;
export type PushData = {
type PushData = {
where?: WhereClause | ParseQuery;
push_time?: string | Date;
expiration_time?: string | Date;
Expand Down
2 changes: 1 addition & 1 deletion types/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": ["es6", "dom"],
"lib": ["es6"],
"noImplicitAny": true,
"noImplicitThis": true,
"strictFunctionTypes": true,
Expand Down

0 comments on commit 306792c

Please sign in to comment.