From 4daf603db78e74e8d0272758430c1e907732bc07 Mon Sep 17 00:00:00 2001 From: yifancong Date: Fri, 9 Aug 2024 10:50:50 +0800 Subject: [PATCH] Update packages/components/src/components/CodeViewer/hightlight.tsx Co-authored-by: neverland --- packages/components/src/components/CodeViewer/hightlight.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/src/components/CodeViewer/hightlight.tsx b/packages/components/src/components/CodeViewer/hightlight.tsx index 6f603a6f..eccf1093 100644 --- a/packages/components/src/components/CodeViewer/hightlight.tsx +++ b/packages/components/src/components/CodeViewer/hightlight.tsx @@ -49,7 +49,7 @@ export const FileHightLightViewer: React.FC = ({ editorRef.current = editor; const range = getSelectionRange( { start, end }, - monaco.Range as any as typeof RangeClass, + monaco.Range as unknown as typeof RangeClass, ); const position = getRevealPositionForViewer( range.startLineNumber,