react-native-google-signin: StatusCodes enum

This commit is contained in:
Michele Bombardi
2018-09-18 13:37:22 +02:00
parent b697ec8a1b
commit faa168a96b
+8
View File
@@ -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 <https://github.com/j-fro>
// Michele Bombardi <https://github.com/bm-software>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
@@ -144,3 +145,10 @@ export namespace GoogleSignin {
*/
function revokeAccess(): Promise<void>;
}
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',
}