@types/parse
Advanced tools
Comparing version 2.4.2 to 2.4.3
@@ -34,2 +34,7 @@ // Type definitions for parse 2.4 | ||
interface SignUpOptions { | ||
useMasterKey?: boolean; | ||
installationId?: string; | ||
} | ||
interface SessionTokenOption { | ||
@@ -102,7 +107,7 @@ sessionToken?: string; | ||
then<U>(resolvedCallback: (...values: T[]) => IPromise<U>, | ||
rejectedCallback?: (reason: any) => IPromise<U>): IPromise<U>; | ||
rejectedCallback?: (reason: any) => IPromise<U>): IPromise<U>; | ||
then<U>(resolvedCallback: (...values: T[]) => U, | ||
rejectedCallback?: (reason: any) => IPromise<U>): IPromise<U>; | ||
rejectedCallback?: (reason: any) => IPromise<U>): IPromise<U>; | ||
then<U>(resolvedCallback: (...values: T[]) => U, | ||
rejectedCallback?: (reason: any) => U): IPromise<U>; | ||
rejectedCallback?: (reason: any) => U): IPromise<U>; | ||
} | ||
@@ -292,3 +297,3 @@ | ||
//Adds a Parse.Object or an array of Parse.Objects to the relation. | ||
add(object: T): void; | ||
add(object: T | Array<T>): void; | ||
@@ -299,3 +304,3 @@ // Returns a Parse.Query that is limited to objects in this relation. | ||
// Removes a Parse.Object or an array of Parse.Objects from this relation. | ||
remove(object: T): void; | ||
remove(object: T | Array<T>): void; | ||
} | ||
@@ -380,3 +385,5 @@ | ||
save(key: string, value: any, options?: Object.SaveOptions): Promise<this>; | ||
save(attrs: object, options?: Object.SaveOptions): Promise<this>; | ||
set(key: string, value: any, options?: Object.SetOptions): boolean; | ||
set(attrs: object, options?: Object.SetOptions): boolean; | ||
setACL(acl: ACL, options?: SuccessFailureOptions): boolean; | ||
@@ -747,3 +754,3 @@ toPointer(): Pointer; | ||
static current(): User | undefined; | ||
static signUp(username: string, password: string, attrs: any, options?: SuccessFailureOptions): Promise<User>; | ||
static signUp(username: string, password: string, attrs: any, options?: SignUpOptions): Promise<User>; | ||
static logIn(username: string, password: string, options?: SuccessFailureOptions): Promise<User>; | ||
@@ -756,3 +763,3 @@ static logOut(): Promise<User>; | ||
signUp(attrs: any, options?: SuccessFailureOptions): Promise<this>; | ||
signUp(attrs: any, options?: SignUpOptions): Promise<this>; | ||
logIn(options?: SuccessFailureOptions): Promise<this>; | ||
@@ -759,0 +766,0 @@ authenticated(): boolean; |
{ | ||
"name": "@types/parse", | ||
"version": "2.4.2", | ||
"version": "2.4.3", | ||
"description": "TypeScript definitions for parse", | ||
@@ -38,4 +38,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "7d4a44f645afb39fc802607a8628736c181206886f9d6e18b226fffe39094eae", | ||
"typesPublisherContentHash": "17b6f62bc1e3baab9db79c315192c36a4c577334cff803d91c76959034dd7628", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Tue, 12 Dec 2017 17:14:45 GMT | ||
* Last updated: Wed, 17 Jan 2018 22:17:28 GMT | ||
* Dependencies: node, jquery, underscore | ||
@@ -14,0 +14,0 @@ * Global values: Parse |
43879
985