V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
lizy0329
V2EX  ›  问与答

问个关于 TypeScript 的问题

  •  
  •   lizy0329 · 26 天前 · 213 次点击

    在 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
    
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   694 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 20:04 · PVG 04:04 · LAX 12:04 · JFK 15:04
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.