2
0
mirror of synced 2025-02-03 01:53:43 +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 { interface PhoneAuthListener {
on( on(
event: string, event: string,
observer: () => PhoneAuthSnapshot, observer: (snapshot: PhoneAuthSnapshot) => void,
errorCb?: () => PhoneAuthError, errorCb?: (error: PhoneAuthError) => void,
successCb?: () => PhoneAuthSnapshot successCb?: (snapshot: PhoneAuthSnapshot) => void
): PhoneAuthListener; ): 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 { namespace auth {