From 28f56dedb63ea5de717b1cd09779d3288da466d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rialland?= Date: Thu, 8 Sep 2022 20:27:57 +0200 Subject: [PATCH] Update typescript --- site/package.json | 2 +- site/source/components/ui/Checklist/index.tsx | 3 +++ yarn.lock | 22 ++++++++++++++++++- 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/site/package.json b/site/package.json index bbd5b559b..0a1c93c15 100644 --- a/site/package.json +++ b/site/package.json @@ -138,7 +138,7 @@ "serve-static": "^1.14.2", "ts-morph": "^13.0.3", "ts-node": "^10.8.0", - "typescript": "^4.7.2", + "typescript": "^4.8.3", "vite": "^2.9.13", "vite-plugin-pwa": "^0.12.3", "vite-plugin-shim-react-pdf": "^1.0.5", diff --git a/site/source/components/ui/Checklist/index.tsx b/site/source/components/ui/Checklist/index.tsx index 38c6f705e..beb2ff31a 100644 --- a/site/source/components/ui/Checklist/index.tsx +++ b/site/source/components/ui/Checklist/index.tsx @@ -116,6 +116,7 @@ export function Checklist({ } return React.cloneElement(child, { + // @ts-ignore onChange: (isSelected: boolean) => onItemCheck?.(child.props.name, isSelected), defaultChecked: @@ -124,12 +125,14 @@ export function Checklist({ }) useEffect(() => { + // @ts-ignore onInitialization?.(checklist.map((child) => child.props.name)) }, []) return ( {checklist.map((checkItem) => ( + // @ts-ignore {checkItem} ))} diff --git a/yarn.lock b/yarn.lock index 28de30b30..120336d6f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -25552,7 +25552,7 @@ __metadata: styled-components: ^5.3.1 ts-morph: ^13.0.3 ts-node: ^10.8.0 - typescript: ^4.7.2 + typescript: ^4.8.3 vite: ^2.9.13 vite-plugin-pwa: ^0.12.3 vite-plugin-shim-react-pdf: ^1.0.5 @@ -27454,6 +27454,16 @@ __metadata: languageName: node linkType: hard +"typescript@npm:^4.8.3": + version: 4.8.3 + resolution: "typescript@npm:4.8.3" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: 8286a5edcaf3d68e65c451aa1e7150ad1cf53ee0813c07ec35b7abdfdb10f355ecaa13c6a226a694ae7a67785fd7eeebf89f845da0b4f7e4a35561ddc459aba0 + languageName: node + linkType: hard + "typescript@patch:typescript@^4.2.4#~builtin, typescript@patch:typescript@^4.5.4#~builtin, typescript@patch:typescript@^4.5.5#~builtin, typescript@patch:typescript@^4.7.2#~builtin": version: 4.7.4 resolution: "typescript@patch:typescript@npm%3A4.7.4#~builtin::version=4.7.4&hash=a1c5e5" @@ -27464,6 +27474,16 @@ __metadata: languageName: node linkType: hard +"typescript@patch:typescript@^4.8.3#~builtin": + version: 4.8.3 + resolution: "typescript@patch:typescript@npm%3A4.8.3#~builtin::version=4.8.3&hash=bda367" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: 0404a09c625df01934ef774b45ce1ca57ccae41cd625fcdbb82056715320d9329e70d9d75c2c732ec6ef947444ca978c189a332b71fa21f5c1437d5a83e24906 + languageName: node + linkType: hard + "uglify-js@npm:^3.1.4": version: 3.16.2 resolution: "uglify-js@npm:3.16.2"