lizy0329
V2EX  ›  问与答

问个关于 TypeScript 的问题

  •  
  •   lizy0329 · Jan 6, 2025 · 995 views
    This topic created in 582 days ago, the information mentioned may be changed or developed.

    在 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
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1185 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 20ms · UTC 23:34 · PVG 07:34 · LAX 16:34 · JFK 19:34
    ♥ Do have faith in what you're doing.