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 = () => {}, 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"