docs(): add types (#1342)

Resolves - https://github.com/driftyco/ionic-native/issues/1331
This commit is contained in:
Ankush Aggarwal 2017-04-08 13:58:07 -07:00 committed by Ibby Hadeed
parent 99576d823d
commit 1b429638fe

View File

@ -242,9 +242,9 @@ export type PushEvent = 'registration' | 'error' | 'notification';
* *
* const pushObject: PushObject = this.push.init(options); * 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)); * pushObject.on('error').subscribe(error => console.error('Error with Push plugin', error));
* *