mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-21 23:03:11 -05:00
fix: invalid setKeyHandler key parameter type
This commit is contained in:
parent
69e03f4cf5
commit
ff7babcdd3
4 changed files with 4 additions and 4 deletions
2
dist/squire.js.map
vendored
2
dist/squire.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/squire.mjs.map
vendored
2
dist/squire.mjs.map
vendored
File diff suppressed because one or more lines are too long
2
dist/types/Editor.d.ts
vendored
2
dist/types/Editor.d.ts
vendored
|
@ -50,7 +50,7 @@ declare class Squire {
|
|||
constructor(root: HTMLElement, config?: Partial<SquireConfig>);
|
||||
destroy(): void;
|
||||
_makeConfig(userConfig?: object): SquireConfig;
|
||||
setKeyHandler(key: number, fn: KeyHandlerFunction): this;
|
||||
setKeyHandler(key: string, fn: KeyHandlerFunction): this;
|
||||
_beforeInput(event: InputEvent): void;
|
||||
handleEvent(event: Event): void;
|
||||
fireEvent(type: string, detail?: Event | object): Squire;
|
||||
|
|
|
@ -249,7 +249,7 @@ class Squire {
|
|||
return config;
|
||||
}
|
||||
|
||||
setKeyHandler(key: number, fn: KeyHandlerFunction) {
|
||||
setKeyHandler(key: string, fn: KeyHandlerFunction) {
|
||||
this._keyHandlers[key] = fn;
|
||||
return this;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue