mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Resolves KeyCode - Type reference cannot refer to a property
The interface of the property `$.ui.keyCode` uses a non-standard name `keyCode` which clashes with the property name, giving error `Type reference cannot refer to a property`. Changing the interface name from `keyCode` to `KeyCode` follows the interface naming convention and resolves this issue.
This commit is contained in:
parent
1a6eaf4055
commit
1cbc6388ea
4
jqueryui/jqueryui.d.ts
vendored
4
jqueryui/jqueryui.d.ts
vendored
@ -714,7 +714,7 @@ declare module JQueryUI {
|
||||
distance?: number;
|
||||
}
|
||||
|
||||
interface keyCode {
|
||||
interface KeyCode {
|
||||
BACKSPACE: number;
|
||||
COMMA: number;
|
||||
DELETE: number;
|
||||
@ -751,7 +751,7 @@ declare module JQueryUI {
|
||||
buttonset: Button;
|
||||
datepicker: Datepicker;
|
||||
dialog: Dialog;
|
||||
keyCode: keyCode;
|
||||
keyCode: KeyCode;
|
||||
menu: Menu;
|
||||
progressbar: Progressbar;
|
||||
slider: Slider;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user