mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
Change window.plugins type to interface
Change the type of window.plugins from an object literal specific to Push.d.ts to an interface called Plugins, which can be modified by other code.
This commit is contained in:
18
cordova/plugins/Push.d.ts
vendored
18
cordova/plugins/Push.d.ts
vendored
@@ -7,14 +7,16 @@
|
||||
// Licensed under the MIT license.
|
||||
|
||||
interface Window {
|
||||
plugins: {
|
||||
/**
|
||||
* This plugin allows to receive push notifications. The Android implementation uses
|
||||
* Google's GCM (Google Cloud Messaging) service,
|
||||
* whereas the iOS version is based on Apple APNS Notifications
|
||||
*/
|
||||
pushNotification: PushNotification
|
||||
}
|
||||
plugins: Plugins
|
||||
}
|
||||
|
||||
interface Plugins {
|
||||
/**
|
||||
* This plugin allows to receive push notifications. The Android implementation uses
|
||||
* Google's GCM (Google Cloud Messaging) service,
|
||||
* whereas the iOS version is based on Apple APNS Notifications
|
||||
*/
|
||||
pushNotification: PushNotification
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user