mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Created interface Pointer for toPointer() method of ParseObject
This commit is contained in:
parent
d1eb2edcbd
commit
79d8c8e6fc
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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user