Skip to content

Commit

Permalink
bloody typescript.
Browse files Browse the repository at this point in the history
Also update typescript to 4.4 beta for testing
  • Loading branch information
toyhammered committed Aug 2, 2021
1 parent c91a084 commit b393074
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"husky": "^4.3.0",
"lint-staged": "^10.5.1",
"prettier": "^2.2.0",
"typescript": "^4.1.3"
"typescript": "4.4.0-beta"
},
"scripts": {
"start": "react-scripts start",
Expand Down
2 changes: 2 additions & 0 deletions src/components/ui/ListEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ export default function ListEditor<T extends ModelEditUnion>({
return (
<div>
<button onClick={removeItem(index)}>Remove</button>
{/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}
{/* @ts-ignore */}
<Component key={index} record={item} cache={currentCache} dispatch={parentDispatch} />
</div>
);
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13155,10 +13155,10 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=

typescript@^4.1.3:
version "4.1.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.3.tgz#519d582bd94cba0cf8934c7d8e8467e473f53bb7"
integrity sha512-B3ZIOf1IKeH2ixgHhj6la6xdwR9QrLC5d1VKeCSY4tvkqhF2eqd9O7txNlS0PO3GrBAFIdr3L1ndNwteUbZLYg==
typescript@4.4.0-beta:
version "4.4.0-beta"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.0-beta.tgz#a5b8a3a0d260fa5ce84daa3ab58f7102ad19a655"
integrity sha512-qMxA8NzN3igwX8Mii7MXGNW+YeFAkUKyKg+x4F1CCFsO36LqISf1EXXSOLDuRIdGjdVvV53grRxfHjOW65YfMA==

ua-parser-js@^0.7.18:
version "0.7.23"
Expand Down

0 comments on commit b393074

Please sign in to comment.