Skip to content

Commit

Permalink
feat(keyboard): add types for config files (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
imhoffd authored Dec 7, 2020
1 parent 3f90758 commit 09bba16
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions keyboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
27 changes: 27 additions & 0 deletions keyboard/src/definitions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
/// <reference types="@capacitor/cli" />

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.
Expand Down

0 comments on commit 09bba16

Please sign in to comment.