2017-03-02 13:10:10 +00:00
|
|
|
/* eslint-disable */
|
|
|
|
declare module 'react-native' {
|
|
|
|
// noinspection ES6ConvertVarToLetConst
|
|
|
|
declare var exports: any;
|
|
|
|
}
|
|
|
|
|
|
|
|
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 = {
|
|
|
|
provider: string,
|
|
|
|
token: string,
|
|
|
|
secret: string
|
|
|
|
};
|
|
|
|
|
2017-04-26 11:21:53 +00:00
|
|
|
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,
|
|
|
|
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
|
|
|
|
};
|