-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
25 lines (20 loc) · 899 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
declare module 'mayo-firestore-write' {
interface FirebaseConfig {
apiKey: string;
authDomain: string;
}
interface User {
uid: string;
email: string;
data: any;
}
export function signInFirebase(googleCredential: any, firebaseConfig?: any | null): Promise<User>;
export function writeToFirebase(data: any, merge?: boolean): Promise<User | null>;
export function loadFromFirestore(): Promise<any | null>;
export function writeToAsyncStorage(data: any, merge?: boolean): Promise<User | null>;
export function loadFromAsyncStorage(): Promise<any | null>;
export function syncAsyncStorageToFirestore(): Promise<null>;
export function flushFromAsyncStorage(): Promise<null>;
export function getUser(): Promise<User | null>;
export function customInitializeFirebase(providedConfiguration?: any): Promise<any>;
}