Skip to content

ToEmitsForEvents

Category
Reactive
Alias
EventsToEmits

Converting Events to Emits.

Usage

ts
import type { 
ToEmitsForEvents
} from '@utype/vue'
type
Props
= {
onClick
: (
e
: Event) => void;
onMousedown
: () => void;
} // Expect: { (eventname: "click", e: Event): void; (eventname: "mousedown"): void; } type
MyProp
=
ToEmitsForEvents
<
Props
>