react-native-firebase/lib/flow.js

51 lines
949 B
JavaScript
Raw Normal View History

2017-03-02 13:10:10 +00:00
/* eslint-disable */
2017-09-23 17:26:19 +00:00
// declare module 'react-native' {
// // noinspection ES6ConvertVarToLetConst
// declare var exports: any;
// }
2017-03-02 13:10:10 +00:00
declare type AuthResultType = {
authenticated: boolean,
user: Object|null
2017-03-17 23:40:12 +00:00
} | null;
2017-03-02 13:10:10 +00:00
declare type CredentialType = {
providerId: string,
2017-03-02 13:10:10 +00:00
token: string,
secret: string
};
declare type DatabaseListener = {
listenerId: number;
eventName: string;
successCallback: Function;
failureCallback?: Function;
};
declare type DatabaseModifier = {
type: 'orderBy' | 'limit' | 'filter';
name?: string;
key?: string;
limit?: number;
value?: any;
valueType?: string;
};
2017-03-02 13:10:10 +00:00
declare type GoogleApiAvailabilityType = {
status: number,
isAvailable: boolean,
isUserResolvableError?: boolean,
hasResolution?: boolean,
2017-03-02 13:10:10 +00:00
error?: string
};
2017-04-04 16:58:20 +00:00
declare class FirebaseError {
message: string,
name: string,
code: string,
stack: string,
path: string,
details: string,
modifiers: string
};