在 Vue 中,如何让
<MonacoEditor :code="code" language="json" @ready="ready1" />
@ready 的类型能够自动推导到 ready1 上?
现在 @ready
(property) onReady?: ((editor: monaco.editor.IStandaloneCodeEditor) => any) | undefined
ready1
(property) ready1: (editor: any) => void