From faa168a96bec5d0f9cde505fa989f8de7ca64c52 Mon Sep 17 00:00:00 2001 From: Michele Bombardi Date: Tue, 18 Sep 2018 13:37:22 +0200 Subject: [PATCH] react-native-google-signin: StatusCodes enum --- types/react-native-google-signin/index.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/types/react-native-google-signin/index.d.ts b/types/react-native-google-signin/index.d.ts index 6cf83ed1e4..cb366dcc0d 100644 --- a/types/react-native-google-signin/index.d.ts +++ b/types/react-native-google-signin/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for react-native-google-signin 0.12 // Project: https://github.com/devfd/react-native-google-signin // Definitions by: Jacob Froman +// Michele Bombardi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -144,3 +145,10 @@ export namespace GoogleSignin { */ function revokeAccess(): Promise; } + +export enum StatusCodes { + SIGN_IN_CANCELLED = '12501', + IN_PROGRESS = 'ASYNC_OP_IN_PROGRESS', + PLAY_SERVICES_NOT_AVAILABLE = 'PLAY_SERVICES_NOT_AVAILABLE', + SIGN_IN_REQUIRED = '4', +}