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 {
|
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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user