From 4242140b21054d5d71dd762e4862daf27ac58270 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 10 Sep 2024 16:51:00 +0000 Subject: [PATCH 1/2] chore(deps-dev): bump the types group across 1 directory with 2 updates Bumps the types group with 2 updates in the / directory: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) and [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react). Updates `@types/node` from 18.19.47 to 18.19.50 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Updates `@types/react` from 18.3.4 to 18.3.5 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-patch dependency-group: types - dependency-name: "@types/react" dependency-type: direct:development update-type: version-update:semver-patch dependency-group: types ... Signed-off-by: dependabot[bot] --- package.json | 4 ++-- yarn.lock | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index d11d65a45d86..a47c148e456b 100644 --- a/package.json +++ b/package.json @@ -167,8 +167,8 @@ "@types/jest": "^29.5.12", "@types/js-yaml": "^4.0.9", "@types/mdast": "^4.0.4", - "@types/node": "^18.19.47", - "@types/react": "^18.3.4", + "@types/node": "^18.19.50", + "@types/react": "^18.3.5", "@types/react-dom": "^18.3.0", "@types/react-modal": "^3.16.3", "babel-jest": "^29.7.0", diff --git a/yarn.lock b/yarn.lock index 8ac152446a44..14b5b34542c8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3639,10 +3639,10 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-13.9.3.tgz#6356df2647de9eac569f9a52eda3480fa9e70b4d" integrity sha512-01s+ac4qerwd6RHD+mVbOEsraDHSgUaefQlEdBbUolnQFjKwCr7luvAlEwW1RFojh67u0z4OUTjPn9LEl4zIkA== -"@types/node@^18.11.18", "@types/node@^18.19.47": - version "18.19.47" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.47.tgz#18076201ad7dd3445046df6ce9ead5fe5abd9387" - integrity sha512-1f7dB3BL/bpd9tnDJrrHb66Y+cVrhxSOTGorRNdHwYTUlTay3HuTDPKo9a/4vX9pMQkhYBcAbL4jQdNlhCFP9A== +"@types/node@^18.11.18", "@types/node@^18.19.50": + version "18.19.50" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.50.tgz#8652b34ee7c0e7e2004b3f08192281808d41bf5a" + integrity sha512-xonK+NRrMBRtkL1hVCc3G+uXtjh1Al4opBLjqVmipe5ZAaBYWW6cNAiBVZ1BvmkBhep698rP3UM3aRAdSALuhg== dependencies: undici-types "~5.26.4" @@ -3715,10 +3715,10 @@ dependencies: "@types/react" "*" -"@types/react@*", "@types/react@^18.3.4": - version "18.3.4" - resolved "https://registry.yarnpkg.com/@types/react/-/react-18.3.4.tgz#dfdd534a1d081307144c00e325c06e00312c93a3" - integrity sha512-J7W30FTdfCxDDjmfRM+/JqLHBIyl7xUIp9kwK637FGmY7+mkSFSe6L4jpZzhj5QMfLssSDP4/i75AKkrdC7/Jw== +"@types/react@*", "@types/react@^18.3.5": + version "18.3.5" + resolved "https://registry.yarnpkg.com/@types/react/-/react-18.3.5.tgz#5f524c2ad2089c0ff372bbdabc77ca2c4dbadf8f" + integrity sha512-WeqMfGJLGuLCqHGYRGHxnKrXcTitc6L/nBUWfWPcTarG3t9PsquqUMuVeXZeca+mglY4Vo5GZjCi0A3Or2lnxA== dependencies: "@types/prop-types" "*" csstype "^3.0.2" From 77fea1464bfb31be9466e9c7837bad795478a5c5 Mon Sep 17 00:00:00 2001 From: Claas Augner Date: Tue, 10 Sep 2024 18:53:47 +0200 Subject: [PATCH 2/2] fix(playground): add missing type --- client/src/playground/editor.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/playground/editor.tsx b/client/src/playground/editor.tsx index 42623df728a3..78c28a53ac31 100644 --- a/client/src/playground/editor.tsx +++ b/client/src/playground/editor.tsx @@ -77,7 +77,10 @@ function cmExtensions(colorScheme: string, language: string) { ]; } -const Editor = forwardRef(function EditorInner( +const Editor = forwardRef< + EditorHandle, + { language: string; callback: () => void } +>(function EditorInner( { language, callback = () => {},