From 6a7d3ddc7a3c768368704a0fd7c67bb2f43680ef Mon Sep 17 00:00:00 2001 From: Salakar Date: Sun, 15 Jul 2018 00:44:20 +0100 Subject: [PATCH] [types][iid] getToken & deleteToken now have option args with defaults that use `app.options.messagingSenderId` as authorizedEntity and '*' as scope --- 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 45c5d54b..65bf3579 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -1089,8 +1089,8 @@ declare module 'react-native-firebase' { interface InstanceId { delete(): Promise; get(): Promise; - getToken(authorizedEntity: string, scope: string): Promise; - deleteToken(authorizedEntity: string, scope: string): Promise; + getToken(authorizedEntity?: string, scope?: string): Promise; + deleteToken(authorizedEntity?: string, scope?: string): Promise; } }