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,