[typings][typescript] fix tsc errors
This commit is contained in:
parent
2f21a37f7d
commit
42fe8ddd65
|
@ -5,6 +5,13 @@
|
|||
|
||||
declare module "react-native-firebase" {
|
||||
|
||||
/** 3rd party provider Credentials */
|
||||
type AuthCredential = {
|
||||
providerId: string,
|
||||
token: string,
|
||||
secret: string
|
||||
}
|
||||
|
||||
type AuthProvider = {
|
||||
PROVIDER_ID: string,
|
||||
credential: (token: string, secret?: string) => AuthCredential,
|
||||
|
@ -594,7 +601,7 @@ declare module "react-native-firebase" {
|
|||
*
|
||||
* @param forceRefresh: boolean - default to false
|
||||
*/
|
||||
getIdToken(forceRefresh: boolean?): Promise<string>
|
||||
getIdToken(forceRefresh?: boolean): Promise<string>
|
||||
|
||||
/**
|
||||
* Link the user with a 3rd party credential provider.
|
||||
|
@ -642,13 +649,6 @@ declare module "react-native-firebase" {
|
|||
updateProfile(updates: UpdateProfile): Promise<void>
|
||||
}
|
||||
|
||||
/** 3rd party provider Credentials */
|
||||
type AuthCredential = {
|
||||
providerId: string,
|
||||
token: string,
|
||||
secret: string
|
||||
}
|
||||
|
||||
type ActionCodeSettings = {
|
||||
android: {
|
||||
installApp?: boolean,
|
||||
|
@ -1032,7 +1032,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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue