2
0
mirror of synced 2025-01-24 05:08:59 +00:00

Merge pull request #1185 from sowdri/pr/phone-auth-listener-typings

Updated typings for PhoneAuthListener
This commit is contained in:
Chris Bianca 2018-06-17 16:06:19 +01:00 committed by GitHub
commit 34545f1b6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

10
lib/index.d.ts vendored
View File

@ -805,14 +805,14 @@ declare module 'react-native-firebase' {
interface PhoneAuthListener {
on(
event: string,
observer: () => PhoneAuthSnapshot,
errorCb?: () => PhoneAuthError,
successCb?: () => PhoneAuthSnapshot
observer: (snapshot: PhoneAuthSnapshot) => void,
errorCb?: (error: PhoneAuthError) => void,
successCb?: (snapshot: PhoneAuthSnapshot) => void
): PhoneAuthListener;
then(fn: () => PhoneAuthSnapshot): Promise<any>;
then(fn: (snapshot: PhoneAuthSnapshot) => void): Promise<any>;
catch(fn: () => Error): Promise<any>;
catch(fn: (error: Error) => void): Promise<any>;
}
namespace auth {