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

问个关于 TypeScript 的问题

  •  
  •   lizy0329 · 44 天前 · 232 次点击
    这是一个创建于 44 天前的主题,其中的信息可能已经有所发展或是发生改变。

    在 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   ·   实用小工具   ·   3742 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 10:30 · PVG 18:30 · LAX 02:30 · JFK 05:30
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.