From 3cde0e93d9983f989cfa2eadce5ee62a110faffd Mon Sep 17 00:00:00 2001 From: Salakar Date: Mon, 25 Sep 2017 21:29:40 +0100 Subject: [PATCH] [flow] fix misc flow warnings --- lib/modules/auth/index.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/modules/auth/index.js b/lib/modules/auth/index.js index 0fd1007a..aa99ee76 100644 --- a/lib/modules/auth/index.js +++ b/lib/modules/auth/index.js @@ -19,6 +19,8 @@ export default class Auth extends ModuleBase { static _NATIVE_MODULE = 'RNFirebaseAuth'; _user: User | null; + _native: Object; + _getAppEventName: Function; _authResult: AuthResultType | null; authenticated: boolean; @@ -234,7 +236,7 @@ export default class Auth extends ModuleBase { * @param newPassword * @return {Promise.} */ - confirmPasswordReset(code: string, newPassword: string): Promise { + confirmPasswordReset(code: string, newPassword: string): Promise { return this._native.confirmPasswordReset(code, newPassword); } @@ -245,7 +247,7 @@ export default class Auth extends ModuleBase { * @param code * @return {Promise.} */ - applyActionCode(code: string): Promise { + applyActionCode(code: string): Promise { return this._native.applyActionCode(code); } @@ -254,9 +256,9 @@ export default class Auth extends ModuleBase { * * @link https://firebase.google.com/docs/reference/js/firebase.auth.Auth#checkActionCode * @param code - * @return {Promise.|Promise} + * @return {Promise.|Promise} */ - checkActionCode(code: string): Promise { + checkActionCode(code: string): Promise { return this._native.checkActionCode(code); }