mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-06 22:35:57 +08:00
Created interface Pointer for toPointer() method of ParseObject
This commit is contained in:
8
types/parse/index.d.ts
vendored
8
types/parse/index.d.ts
vendored
@@ -104,6 +104,12 @@ declare namespace Parse {
|
||||
rejectedCallback?: (reason: any) => U): IPromise<U>;
|
||||
}
|
||||
|
||||
interface Pointer {
|
||||
__type: string;
|
||||
className: string;
|
||||
objectId: string;
|
||||
}
|
||||
|
||||
interface IBaseObject {
|
||||
toJSON(): any;
|
||||
}
|
||||
@@ -368,7 +374,7 @@ declare namespace Parse {
|
||||
save(key: string, value: any, options?: Object.SaveOptions): Promise<this>;
|
||||
set(key: string, value: any, options?: Object.SetOptions): boolean;
|
||||
setACL(acl: ACL, options?: SuccessFailureOptions): boolean;
|
||||
toPointer(): any;
|
||||
toPointer(): Pointer;
|
||||
unset(attr: string, options?: any): any;
|
||||
validate(attrs: any, options?: SuccessFailureOptions): boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user