Closed as not planned
Description
Work:
const emit = defineEmits<{
close: [];
}>();
Don't work:
interface Emits {
close: [];
}
const emit = defineEmits<Emits>();
Type 'Emits' does not satisfy the constraint '((...args: any[]) => any) | Record<string, any[]>'.
Type 'Emits' is not assignable to type 'Record<string, any[]>'.ts(2344)
Metadata
Metadata
Assignees
Labels
No labels