Merge pull request #41 from armno/fix-incorrect-return-type-definition

[Angular] Fix return type of getButtonElement()
This commit is contained in:
Francisco Hodge 2018-12-04 20:11:10 -05:00 committed by GitHub
commit 9cea07dd41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 9 additions and 9 deletions

View File

@ -1,6 +1,6 @@
/*! /*!
* *
* simple-keyboard v2.11.7 * simple-keyboard v2.11.8
* https://github.com/hodgef/simple-keyboard * https://github.com/hodgef/simple-keyboard
* *
* Copyright (c) Francisco Hodge (https://github.com/hodgef) * Copyright (c) Francisco Hodge (https://github.com/hodgef)

File diff suppressed because one or more lines are too long

4
build/index.d.ts vendored
View File

@ -152,7 +152,7 @@ declare module 'simple-keyboard' {
* Get the keyboards input (You can also get it from the onChange prop). * Get the keyboards input (You can also get it from the onChange prop).
* @param {string} [inputName] optional - the internal input to select * @param {string} [inputName] optional - the internal input to select
*/ */
getInput(inputName?: string): void; getInput(inputName?: string): string;
/** /**
* Set the keyboards input. * Set the keyboards input.
@ -177,7 +177,7 @@ declare module 'simple-keyboard' {
* Get the DOM Element of a button. If there are several buttons with the same name, an array of the DOM Elements is returned. * Get the DOM Element of a button. If there are several buttons with the same name, an array of the DOM Elements is returned.
* @param {string} button The button layout name to select * @param {string} button The button layout name to select
*/ */
getButtonElement(button: string): void; getButtonElement(button: string): HTMLElement | HTMLElement[];
} }
export default Keyboard; export default Keyboard;

View File

@ -1,6 +1,6 @@
/*! /*!
* *
* simple-keyboard v2.11.7 * simple-keyboard v2.11.8
* https://github.com/hodgef/simple-keyboard * https://github.com/hodgef/simple-keyboard
* *
* Copyright (c) Francisco Hodge (https://github.com/hodgef) * Copyright (c) Francisco Hodge (https://github.com/hodgef)

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "simple-keyboard", "name": "simple-keyboard",
"version": "2.11.7", "version": "2.11.8",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "simple-keyboard", "name": "simple-keyboard",
"version": "2.11.7", "version": "2.11.8",
"description": "On-screen Javascript Virtual Keyboard", "description": "On-screen Javascript Virtual Keyboard",
"main": "build/index.js", "main": "build/index.js",
"types": "build/index.d.ts", "types": "build/index.d.ts",

View File

@ -152,7 +152,7 @@ declare module 'simple-keyboard' {
* Get the keyboards input (You can also get it from the onChange prop). * Get the keyboards input (You can also get it from the onChange prop).
* @param {string} [inputName] optional - the internal input to select * @param {string} [inputName] optional - the internal input to select
*/ */
getInput(inputName?: string): void; getInput(inputName?: string): string;
/** /**
* Set the keyboards input. * Set the keyboards input.
@ -177,7 +177,7 @@ declare module 'simple-keyboard' {
* Get the DOM Element of a button. If there are several buttons with the same name, an array of the DOM Elements is returned. * Get the DOM Element of a button. If there are several buttons with the same name, an array of the DOM Elements is returned.
* @param {string} button The button layout name to select * @param {string} button The button layout name to select
*/ */
getButtonElement(button: string): void; getButtonElement(button: string): HTMLElement | HTMLElement[];
} }
export default Keyboard; export default Keyboard;