Updated typings for PhoneAuthListener

This commit is contained in:
sowdri 2018-06-07 11:15:44 +09:30
parent 2a083f7deb
commit 5b3d9f97f7
1 changed files with 5 additions and 5 deletions

10
lib/index.d.ts vendored
View File

@ -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 {