mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Merge pull request #15958 from systemride/getInitialNotification
react-native: PushNotificationIOS.getInitialNotification should return a Promise
This commit is contained in:
2
types/react-native/index.d.ts
vendored
2
types/react-native/index.d.ts
vendored
@@ -7226,7 +7226,7 @@ export interface PushNotificationIOSStatic {
|
||||
* This method returns a promise that resolves to either the notification
|
||||
* object if the app was launched by a push notification, or `null` otherwise.
|
||||
*/
|
||||
getInitialNotification(): PushNotification
|
||||
getInitialNotification(): Promise<PushNotification>
|
||||
}
|
||||
|
||||
export interface SettingsStatic {
|
||||
|
||||
Reference in New Issue
Block a user