Merge pull request #451 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

File diff suppressed because one or more lines are too long

1
build/index.d.ts vendored
View File

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

View File

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