Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 463 Bytes

to-emits-for-events.md

File metadata and controls

24 lines (17 loc) · 463 Bytes
category alias
Reactive
ToEmitsForEvents

ToEmitsForEvents

Converting Events to Emits.

Usage

import type { ToEmitsForEvents } from '@utype/vue'

type Props = {
  onClick: (e: Event) => void;
  onMousedown: () => void;
}

// Expect: { (eventname: "click", e: Event): void; (eventname: "mousedown"): void; } // [!code highlight]
type MyProp = ToEmitsForEvents<Props>