How to refer to the monaco type
Describe the bug
@monaco-editor/react seems to request monaco-editor files by way of cdn, so how do I use the monaco.editor.IStandaloneCodeEditor type in my code, I get an error when I refer to monaco-editor/esm/vs/editor/editor.api
It seems impossible to introduce, but I have to use this type in
useRef.
version @monaco-editor/react: 4.4.6
@DreamGhostStar try
import { type editor } from 'monaco-editor';
...
editor.IStandaloneCodeEditor
@suren-atoyan No, it doesn't seem to work because I don't have a monaco-editor dependency
This issue has been marked as stale due to inactivity. It will be closed in 7 days unless further activity occurs.
Closing due to inactivity. Feel free to reopen if needed.