mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 08:32:52 +08:00
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:
parent
7dcd6b27a0
commit
66316d29fe
@ -73,7 +73,7 @@ export class Keyboard extends IonicNativePlugin {
|
|||||||
sync: true,
|
sync: true,
|
||||||
platforms: ['iOS']
|
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.
|
* Creates an observable that notifies you when the keyboard is shown. Unsubscribe to observable to cancel event watch.
|
||||||
|
Loading…
Reference in New Issue
Block a user