mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
docs(): add types (#1342)
Resolves - https://github.com/driftyco/ionic-native/issues/1331
This commit is contained in:
parent
99576d823d
commit
1b429638fe
@ -242,9 +242,9 @@ export type PushEvent = 'registration' | 'error' | 'notification';
|
||||
*
|
||||
* const pushObject: PushObject = this.push.init(options);
|
||||
*
|
||||
* pushObject.on('notification').subscribe(notification => console.log('Received a notification', notification));
|
||||
* pushObject.on('notification').subscribe((notification: any) => console.log('Received a notification', notification));
|
||||
*
|
||||
* pushObject.on('registration').subscribe(registration => console.log('Device registered', registration));
|
||||
* pushObject.on('registration').subscribe((registration: any) => console.log('Device registered', registration));
|
||||
*
|
||||
* pushObject.on('error').subscribe(error => console.error('Error with Push plugin', error));
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user