diff --git a/lib/index.d.ts b/lib/index.d.ts index 364d28d4..f8ddda7d 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -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; + then(fn: (snapshot: PhoneAuthSnapshot) => void): Promise; - catch(fn: () => Error): Promise; + catch(fn: (error: Error) => void): Promise; } namespace auth {