Skip to content

Missing const in defineEmits #54

Closed
@ExEr7um

Description

@ExEr7um

defineEmits snippet looks like this:

defineEmits<{
  eventName: []
}>()

But I think it should always have const keyword.

const emit = defineEmits<{
  eventName: []
}>()

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingGood First IssueGood issue for new contributors

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions