[types][iid] getToken & deleteToken now have option args with defaults that use `app.options.messagingSenderId` as authorizedEntity and '*' as scope

This commit is contained in:
Salakar 2018-07-15 00:44:20 +01:00
parent aa12de3248
commit 6a7d3ddc7a
1 changed files with 2 additions and 2 deletions

4
lib/index.d.ts vendored
View File

@ -1089,8 +1089,8 @@ declare module 'react-native-firebase' {
interface InstanceId {
delete(): Promise<void>;
get(): Promise<string>;
getToken(authorizedEntity: string, scope: string): Promise<string>;
deleteToken(authorizedEntity: string, scope: string): Promise<void>;
getToken(authorizedEntity?: string, scope?: string): Promise<string>;
deleteToken(authorizedEntity?: string, scope?: string): Promise<void>;
}
}