Skip to content

Commit 2165cf1

Browse files
authored
Add @types/lodash.clonedeep types (#3736)
This lets us remove the `@ts-expect-error` comments from the `Keyboard` module.
1 parent d2f689f commit 2165cf1

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

modules/keyboard.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -762,14 +762,10 @@ function normalize(binding: Binding): BindingObject {
762762
} else {
763763
return null;
764764
}
765-
// @ts-expect-error
766765
if (binding.shortKey) {
767-
// @ts-expect-error
768766
binding[SHORTKEY] = binding.shortKey;
769-
// @ts-expect-error
770767
delete binding.shortKey;
771768
}
772-
// @ts-expect-error
773769
return binding;
774770
}
775771

package-lock.json

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"@babel/preset-env": "^7.19.4",
3030
"@playwright/test": "^1.27.1",
3131
"@types/jasmine": "^4.3.0",
32+
"@types/lodash.clonedeep": "^4.5.7",
3233
"@typescript-eslint/eslint-plugin": "^5.38.0",
3334
"@typescript-eslint/parser": "^5.38.0",
3435
"babel-loader": "^8.2.5",

0 commit comments

Comments
 (0)