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

问个关于 TypeScript 的问题

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

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