From 79d8c8e6fcdc7ed799126289524717c19dfed3bc Mon Sep 17 00:00:00 2001 From: Cedric Kemp Date: Sat, 4 Nov 2017 12:16:54 -0400 Subject: [PATCH] Created interface Pointer for toPointer() method of ParseObject --- types/parse/index.d.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/types/parse/index.d.ts b/types/parse/index.d.ts index 6356a941cc..c606a2a6f9 100644 --- a/types/parse/index.d.ts +++ b/types/parse/index.d.ts @@ -104,6 +104,12 @@ declare namespace Parse { rejectedCallback?: (reason: any) => U): IPromise; } + 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; 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; }