Skip to content

Commit 64b53fe

Browse files
committed
chore: update typescript
1 parent 48784ea commit 64b53fe

File tree

3 files changed

+6
-22
lines changed

3 files changed

+6
-22
lines changed

package-lock.json

Lines changed: 4 additions & 19 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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"eslint-config-zakodium": "^16.0.0",
5050
"prettier": "^3.6.2",
5151
"raw-loader": "^4.0.2",
52-
"typescript": "~5.2.2"
52+
"typescript": "^5.9.2"
5353
},
5454
"browserslist": {
5555
"production": [

src/components/editor/CodeEditor.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import imageJSTypes from '!!raw-loader!../../../node_modules/image-js/dist-types
44
import { useColorMode } from '@docusaurus/theme-common';
55
import type { Monaco, OnMount } from '@monaco-editor/react';
66
import { Editor } from '@monaco-editor/react';
7-
import type { Dispatch, SetStateAction} from 'react';
7+
import type { Dispatch, SetStateAction } from 'react';
88
import React, { useEffect, useRef } from 'react';
99

1010
type EditorInstance = Parameters<OnMount>[0];
@@ -97,7 +97,6 @@ function MonacoEditor({
9797
}
9898
function handleBeforeMount(monaco: Monaco) {
9999
const javascript = monaco.languages.typescript.javascriptDefaults;
100-
// @ts-expect-error raw loader loads a string
101100
javascript.addExtraLib(imageJSTypes, 'image-js.d.ts');
102101

103102
javascript.setDiagnosticsOptions({

0 commit comments

Comments
 (0)