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