types(runtime-core): make this void in emits validator (#1842)

This commit is contained in:
Aurelius333
2020-08-14 17:36:26 -04:00
committed by GitHub
parent 223f180529
commit 5002ab53d6
2 changed files with 12 additions and 1 deletions

View File

@@ -106,7 +106,7 @@ export interface ComponentOptionsBase<
components?: Record<string, PublicAPIComponent>
directives?: Record<string, Directive>
inheritAttrs?: boolean
emits?: E | EE[]
emits?: (E | EE[]) & ThisType<void>
// Internal ------------------------------------------------------------------