diff --git a/package.json b/package.json index a90698c9a..b6cbdcf9b 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "jsdom": "21.0.0", "jsdom-global": "3.0.2", "lint-staged": "13.1.0", - "prettier": "2.8.1", + "prettier": "2.8.2", "reflect-metadata": "0.1.13", "rollup": "3.9.1", "tslib": "2.4.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 91c342c1d..e027c5b35 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,7 +26,7 @@ specifiers: jsdom: 21.0.0 jsdom-global: 3.0.2 lint-staged: 13.1.0 - prettier: 2.8.1 + prettier: 2.8.2 reflect-metadata: 0.1.13 rollup: 3.9.1 tslib: 2.4.1 @@ -61,13 +61,13 @@ devDependencies: c8: 7.12.0 eslint: 8.31.0 eslint-config-prettier: 8.6.0_eslint@8.31.0 - eslint-plugin-prettier: 4.2.1_32m5uc2milwdw3tnkcq5del26y + eslint-plugin-prettier: 4.2.1_iu5s7nk6dw7o3tajefwfiqfmge husky: 8.0.3 js-beautify: 1.14.6 jsdom: 21.0.0 jsdom-global: 3.0.2_jsdom@21.0.0 lint-staged: 13.1.0 - prettier: 2.8.1 + prettier: 2.8.2 reflect-metadata: 0.1.13 rollup: 3.9.1 tslib: 2.4.1 @@ -2119,7 +2119,7 @@ packages: eslint: 8.31.0 dev: true - /eslint-plugin-prettier/4.2.1_32m5uc2milwdw3tnkcq5del26y: + /eslint-plugin-prettier/4.2.1_iu5s7nk6dw7o3tajefwfiqfmge: resolution: {integrity: sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==} engines: {node: '>=12.0.0'} peerDependencies: @@ -2132,7 +2132,7 @@ packages: dependencies: eslint: 8.31.0 eslint-config-prettier: 8.6.0_eslint@8.31.0 - prettier: 2.8.1 + prettier: 2.8.2 prettier-linter-helpers: 1.0.0 dev: true @@ -3202,8 +3202,8 @@ packages: fast-diff: 1.2.0 dev: true - /prettier/2.8.1: - resolution: {integrity: sha512-lqGoSJBQNJidqCHE80vqZJHWHRFoNYsSpP9AjFhlhi9ODCJA541svILes/+/1GM3VaL/abZi7cpFzOpdR9UPKg==} + /prettier/2.8.2: + resolution: {integrity: sha512-BtRV9BcncDyI2tsuS19zzhzoxD8Dh8LiCx7j7tHzrkz8GFXAexeWFdi22mjE1d16dftH2qNaytVxqiRTGlMfpw==} engines: {node: '>=10.13.0'} hasBin: true dev: true diff --git a/src/constants/dom-events.ts b/src/constants/dom-events.ts index 4309ffec8..3b749b132 100644 --- a/src/constants/dom-events.ts +++ b/src/constants/dom-events.ts @@ -93,18 +93,18 @@ export const keyCodesByKeyName = { export type KeyName = keyof typeof keyCodesByKeyName export type Modifier = - | typeof systemKeyModifiers[number] - | typeof mouseKeyModifiers[number] + | (typeof systemKeyModifiers)[number] + | (typeof mouseKeyModifiers)[number] export type DomEventNameWithModifier = | DomEventName - | `${DomEventName}.${typeof systemKeyModifiers[number]}` - | `click.${typeof mouseKeyModifiers[number]}` - | `click.${typeof systemKeyModifiers[number]}.${typeof mouseKeyModifiers[number]}` + | `${DomEventName}.${(typeof systemKeyModifiers)[number]}` + | `click.${(typeof mouseKeyModifiers)[number]}` + | `click.${(typeof systemKeyModifiers)[number]}.${(typeof mouseKeyModifiers)[number]}` | `${'keydown' | 'keyup'}.${keyof typeof keyCodesByKeyName}` | `${ | 'keydown' - | 'keyup'}.${typeof systemKeyModifiers[number]}.${keyof typeof keyCodesByKeyName}` + | 'keyup'}.${(typeof systemKeyModifiers)[number]}.${keyof typeof keyCodesByKeyName}` const domEvents = { abort: {