mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
It's common to use numeric keycode, especially when we need to access any element of `keyboard.bindings` directly.
Casting to string like:
```
enum KEYS = {
UP: 38,
DOWN: 40,
};
keyboard.addBinding({
key: KEYS.UP.toString(),
// ...
});
```
does *not* work, so `number` should be allowed as well.
|
||
|---|---|---|
| .. | ||
| index.d.ts | ||
| package.json | ||
| quill-tests.ts | ||
| tsconfig.json | ||
| tslint.json | ||