-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Closed as not planned
Description
Vue version
3.3.7
Link to minimal reproduction
Steps to reproduce
Similar to issue #4294
component.ts:
export interface Base { (e: "change", id: number): void }
Comp.vue
import { Base } from ./component.ts
interface Emits extends Base { (e: "unChange", id: number): void }
const emit = defineEmits()
emit(change, 1)
What is expected?
Component registers change as possible event, no errors/warnings raised.
What is actually happening?
[Vue warn]: Component emitted event "change" but it is neither declared in the emits option nor as an "onChange" prop.
System Info
No response
Any additional comments?
No response
Metadata
Metadata
Assignees
Labels
No labels