mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-01-21 02:23:10 +08:00
Merge pull request #451 from patrickjholloway/el-constructor-overload
Add TypeScript overload for new element constructor signature for Keyboard
This commit is contained in:
commit
f6e636f167
File diff suppressed because one or more lines are too long
1
build/index.d.ts
vendored
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);
|
||||
|
||||
/**
|
||||
|
1
src/lib/@types/index.d.ts
vendored
1
src/lib/@types/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);
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user