From 0b7ba6010e409cf9a69430ff72476cbf438744e4 Mon Sep 17 00:00:00 2001 From: Abe Haruhiko Date: Sat, 13 Jun 2015 16:17:47 +0900 Subject: [PATCH 1/3] Update parse/parse.d.ts --- parse/parse.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse/parse.d.ts b/parse/parse.d.ts index 9f8df5c3f6..4237247ef0 100644 --- a/parse/parse.d.ts +++ b/parse/parse.d.ts @@ -649,7 +649,7 @@ declare module Parse { static current(): User; static signUp(username: string, password: string, attrs: any, options?: ParseDefaultOptions): Promise; static logIn(username: string, password: string, options?: ParseDefaultOptions): Promise; - static logOut(): void; + static logOut(): Promise; static allowCustomUserClass(isAllowed: boolean): void; static become(sessionToken: string, options?: ParseDefaultOptions): Promise; static requestPasswordReset(email: string, options?: ParseDefaultOptions): Promise; From 4db5c10489fc72213b19e3b5f10df985384fddf5 Mon Sep 17 00:00:00 2001 From: AbeHaruhiko Date: Sat, 13 Jun 2015 16:29:15 +0900 Subject: [PATCH 2/3] Update parse/parse.d.ts --- parse/parse.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse/parse.d.ts b/parse/parse.d.ts index 4237247ef0..cb4fa8b2b3 100644 --- a/parse/parse.d.ts +++ b/parse/parse.d.ts @@ -649,7 +649,7 @@ declare module Parse { static current(): User; static signUp(username: string, password: string, attrs: any, options?: ParseDefaultOptions): Promise; static logIn(username: string, password: string, options?: ParseDefaultOptions): Promise; - static logOut(): Promise; + static logOut(): Promise; static allowCustomUserClass(isAllowed: boolean): void; static become(sessionToken: string, options?: ParseDefaultOptions): Promise; static requestPasswordReset(email: string, options?: ParseDefaultOptions): Promise; From 128121aa80e95e0e470c4e45269f154d44f9bf9a Mon Sep 17 00:00:00 2001 From: AbeHaruhiko Date: Sat, 13 Jun 2015 22:45:59 +0900 Subject: [PATCH 3/3] Update parse/parse-tests.ts --- parse/parse-tests.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/parse/parse-tests.ts b/parse/parse-tests.ts index c7cc6ff49e..d373c064d6 100644 --- a/parse/parse-tests.ts +++ b/parse/parse-tests.ts @@ -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(); -} \ No newline at end of file +}