mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Merge pull request #4633 from AbeHaruhiko/parse/parse.d.ts
update parse/parse.d.ts
This commit is contained in:
@@ -265,7 +265,9 @@ function test_user_acl_roles() {
|
||||
role.getRoles().add(role);
|
||||
role.save();
|
||||
|
||||
Parse.User.logOut();
|
||||
Parse.User.logOut().then(function (data) {
|
||||
// logged out
|
||||
});
|
||||
}
|
||||
|
||||
function test_facebook_util() {
|
||||
@@ -397,4 +399,4 @@ function test_view() {
|
||||
|
||||
var model = Parse.User.current();
|
||||
var view = new Parse.View<Parse.User>();
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -649,7 +649,7 @@ declare module Parse {
|
||||
static current(): User;
|
||||
static signUp<T>(username: string, password: string, attrs: any, options?: ParseDefaultOptions): Promise<T>;
|
||||
static logIn<T>(username: string, password: string, options?: ParseDefaultOptions): Promise<T>;
|
||||
static logOut(): void;
|
||||
static logOut<T>(): Promise<T>;
|
||||
static allowCustomUserClass(isAllowed: boolean): void;
|
||||
static become<T>(sessionToken: string, options?: ParseDefaultOptions): Promise<T>;
|
||||
static requestPasswordReset<T>(email: string, options?: ParseDefaultOptions): Promise<T>;
|
||||
|
||||
Reference in New Issue
Block a user