Merge pull request #1185 from sowdri/pr/phone-auth-listener-typings
Updated typings for PhoneAuthListener
This commit is contained in:
commit
34545f1b6e
10
lib/index.d.ts
vendored
10
lib/index.d.ts
vendored
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user