4
0
mirror of https://github.com/hodgef/simple-keyboard.git synced 2025-05-31 08:49:25 +08:00

Merge pull request from patrickjholloway/el-constructor-overload

Add TypeScript overload for new element constructor signature for Keyboard
This commit is contained in:
Francisco Hodge 2020-03-12 19:35:19 -04:00 committed by GitHub
commit f6e636f167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions
build
src/lib/@types

1
build/index.d.ts vendored

@ -192,6 +192,7 @@ declare module 'simple-keyboard' {
class Keyboard {
constructor(selector: string, options: KeyboardOptions);
constructor(selector: HTMLDivElement, options: KeyboardOptions)
constructor(options: KeyboardOptions);
/**

@ -192,6 +192,7 @@ declare module 'simple-keyboard' {
class Keyboard {
constructor(selector: string, options: KeyboardOptions);
constructor(selector: HTMLDivElement, options: KeyboardOptions);
constructor(options: KeyboardOptions);
/**