diff --git a/keyboard/package.json b/keyboard/package.json index e5c43b7e0..e188b9dbf 100644 --- a/keyboard/package.json +++ b/keyboard/package.json @@ -45,6 +45,7 @@ "devDependencies": { "@capacitor/android": "^3.0.0-alpha.7", "@capacitor/core": "^3.0.0-alpha.7", + "@capacitor/cli": "^3.0.0-alpha.7", "@capacitor/docgen": "^0.0.10", "@capacitor/ios": "^3.0.0-alpha.7", "@ionic/eslint-config": "^0.3.0", diff --git a/keyboard/src/definitions.ts b/keyboard/src/definitions.ts index 932a73c67..aa0fc656d 100644 --- a/keyboard/src/definitions.ts +++ b/keyboard/src/definitions.ts @@ -1,5 +1,32 @@ +/// + import type { PluginListenerHandle } from '@capacitor/core'; +declare module '@capacitor/cli' { + export interface PluginsConfig { + Keyboard?: { + /** + * Configure the way the app is resized when the Keyboard appears. + * + * Only available on iOS. + * + * @since 1.0.0 + * @default native + */ + resize?: 'none' | 'native' | 'body' | 'ionic'; + + /** + * Use the dark style keyboard instead of the regular one. + * + * Only available on iOS. + * + * @since 1.0.0 + */ + style?: 'dark'; + }; + } +} + export interface KeyboardInfo { /** * Height of the heyboard.