diff --git a/packages/react-native/Libraries/PushNotificationIOS/PushNotificationIOS.js b/packages/react-native/Libraries/PushNotificationIOS/PushNotificationIOS.js index 3206a5d9f0e..9453c82b9ab 100644 --- a/packages/react-native/Libraries/PushNotificationIOS/PushNotificationIOS.js +++ b/packages/react-native/Libraries/PushNotificationIOS/PushNotificationIOS.js @@ -308,10 +308,7 @@ class PushNotificationIOS { * * See https://reactnative.dev/docs/pushnotificationios#removeeventlistener */ - static removeEventListener( - type: PushNotificationEventName, - handler: Function, - ): void { + static removeEventListener(type: PushNotificationEventName): void { invariant( type === 'notification' || type === 'register' || diff --git a/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap b/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap index fd9e30326af..fd67444f9e4 100644 --- a/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap +++ b/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap @@ -6372,10 +6372,7 @@ declare class PushNotificationIOS { type: PushNotificationEventName, handler: Function ): void; - static removeEventListener( - type: PushNotificationEventName, - handler: Function - ): void; + static removeEventListener(type: PushNotificationEventName): void; static requestPermissions(permissions?: { alert?: boolean, badge?: boolean,