From 66316d29fedd3244af1606434ba170c0f748a20f Mon Sep 17 00:00:00 2001 From: Appie Date: Thu, 15 Nov 2018 07:35:39 +0100 Subject: [PATCH] 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) --- src/@ionic-native/plugins/keyboard/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/keyboard/index.ts b/src/@ionic-native/plugins/keyboard/index.ts index 5fc4c6153..34e46251b 100644 --- a/src/@ionic-native/plugins/keyboard/index.ts +++ b/src/@ionic-native/plugins/keyboard/index.ts @@ -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.