From 90195769fdbcdc1edad0ee7ce96a1542d73530f0 Mon Sep 17 00:00:00 2001 From: Paul Huynh Date: Tue, 30 Jan 2018 21:14:35 +1100 Subject: [PATCH] Fix implicit 'any' and incorrect placement of optional boolean in getIdToken --- lib/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/index.d.ts b/lib/index.d.ts index f5be87fd..3082f7a4 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -583,7 +583,7 @@ declare module "react-native-firebase" { * * @param forceRefresh: boolean - default to false */ - getIdToken(forceRefresh: boolean?): Promise + getIdToken(forceRefresh?: boolean): Promise /** * Link the user with a 3rd party credential provider. @@ -1041,7 +1041,7 @@ declare module "react-native-firebase" { * Returns an unsubscribe function, call the returned function to * unsubscribe from all future events. */ - onLink(listener: (url) => void): () => void; + onLink(listener: (url: string) => void): () => void; } /**