Commit 9dc2f8c8 authored by Libin Lu's avatar Libin Lu Committed by GitHub

Update index.d.ts

parent 0ba1c705
......@@ -76,7 +76,7 @@ declare module "react-native-fcm" {
}
export class FCM {
static requestPermissions(): void;
static requestPermissions(): Promise<void>;
static getFCMToken(): Promise<string>;
static on(event: "FCMTokenRefreshed", handler: (token: string) => void): Subscription;
static on(event: "FCMNotificationReceived", handler: (notification: Notification) => void): Subscription;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment