diff --git a/js/index.js b/js/index.js index 50d9e97b1..42ee88260 100644 --- a/js/index.js +++ b/js/index.js @@ -35,7 +35,7 @@ export type FetchResult = { /** * An event emitted by PushNotificationIOS. */ -export type PushNotificationEventName = $Enum<{ +export type PushNotificationEventName = $Keys<{ /** * Fired when a remote notification is received. The handler will be invoked * with an instance of `PushNotificationIOS`.