refactor(keyboard-setResizeMode): use explicit type (#2811)

This will ensure consumers of this plugin don't need to go on a quest of finding what the possible values are, the values are derived from [here](https://github.com/ionic-team/cordova-plugin-ionic-keyboard#keyboardresizemode)
This commit is contained in:
Appie 2018-11-15 07:35:39 +01:00 committed by Daniel Sogl
parent 7dcd6b27a0
commit 66316d29fe

View File

@ -73,7 +73,7 @@ export class Keyboard extends IonicNativePlugin {
sync: true,
platforms: ['iOS']
})
setResizeMode(mode: string): void {}
setResizeMode(mode: 'native' | 'body' | 'ionic'): void {}
/**
* Creates an observable that notifies you when the keyboard is shown. Unsubscribe to observable to cancel event watch.