Updated typings for PhoneAuthListener
This commit is contained in:
parent
2a083f7deb
commit
5b3d9f97f7
|
@ -806,14 +806,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…
Reference in New Issue