Skip to content

Commit

Permalink
Update packages/components/src/components/CodeViewer/hightlight.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: neverland <[email protected]>
  • Loading branch information
easy1090 and chenjiahan authored Aug 9, 2024
1 parent 74ae2ef commit 4daf603
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const FileHightLightViewer: React.FC<FileHightLightViewerProps> = ({
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,
Expand Down

0 comments on commit 4daf603

Please sign in to comment.