Skip to content

Commit 306792c

Browse files
committed
Revert "Fixes Typescript Defs based on CoreManager Changes."
This reverts commit 25441f9.
1 parent 25441f9 commit 306792c

7 files changed

+10
-16
lines changed

types/ObjectStateMutations.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ export function mergeFirstPendingState(pendingOps: Array<OpsMap>): void;
88
export function estimateAttribute(serverData: AttributeMap, pendingOps: Array<OpsMap>, className: string, id: string | null, attr: string): mixed;
99
export function estimateAttributes(serverData: AttributeMap, pendingOps: Array<OpsMap>, className: string, id: string | null): AttributeMap;
1010
export function commitServerChanges(serverData: AttributeMap, objectCache: ObjectCache, changes: AttributeMap): void;
11-
export type AttributeMap = {
11+
type AttributeMap = {
1212
[attr: string]: any;
1313
};
14-
export type OpsMap = {
14+
type OpsMap = {
1515
[attr: string]: Op;
1616
};
17-
export type ObjectCache = {
17+
type ObjectCache = {
1818
[attr: string]: string;
1919
};
20-
export type State = {
20+
type State = {
2121
serverData: AttributeMap;
2222
pendingOps: OpsMap[];
2323
objectCache: ObjectCache;

types/ParseFile.d.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @ts-nocheck
2-
export type FileSource = {
2+
type FileSource = {
33
format: "file";
44
file: Blob;
55
type: string;
@@ -179,7 +179,3 @@ type Base64 = {
179179
type Uri = {
180180
uri: string;
181181
};
182-
export type FileSaveOptions = FullOptions & {
183-
metadata?: { [key: string]: any },
184-
tags?: { [key: string]: any },
185-
};

types/ParseHooks.d.ts

-2
This file was deleted.

types/ParseQuery.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
type WhereClause = {
33
[attr: string]: mixed;
44
};
5-
export type QueryJSON = {
5+
type QueryJSON = {
66
where: WhereClause;
77
watch?: string;
88
include?: string;
@@ -918,7 +918,7 @@ declare class ParseQuery {
918918
cancel(): ParseQuery;
919919
_setRequestTask(options: any): void;
920920
/**
921-
* Sets a comment to the query so that the query
921+
* Sets a comment to the query so that the query
922922
* can be identified when using a the profiler for MongoDB.
923923
*
924924
* @param {string} value a comment can make your profile data easier to interpret and trace.

types/ParseUser.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @ts-nocheck
2-
export type AuthData = {
2+
type AuthData = {
33
[key: string]: mixed;
44
};
55
export default ParseUser;

types/Push.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function send(data: PushData, options?: FullOptions): Promise<any>;
4949
* @returns {Parse.Object} Status of Push.
5050
*/
5151
export function getPushStatus(pushStatusId: string, options?: FullOptions): Promise<string>;
52-
export type PushData = {
52+
type PushData = {
5353
where?: WhereClause | ParseQuery;
5454
push_time?: string | Date;
5555
expiration_time?: string | Date;

types/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"module": "commonjs",
4-
"lib": ["es6", "dom"],
4+
"lib": ["es6"],
55
"noImplicitAny": true,
66
"noImplicitThis": true,
77
"strictFunctionTypes": true,

0 commit comments

Comments
 (0)