types(runtime-core): provide valid type for default $emit (#1498)

This commit is contained in:
Carlos Rodrigues
2020-07-08 16:51:03 +01:00
committed by GitHub
parent f0394e2a61
commit 1e90605c15
4 changed files with 28 additions and 11 deletions

View File

@@ -79,7 +79,7 @@ export interface ComponentInternalOptions {
export interface FunctionalComponent<
P = {},
E extends EmitsOptions = Record<string, any>
E extends EmitsOptions = {}
> extends ComponentInternalOptions {
// use of any here is intentional so it can be a valid JSX Element constructor
(props: P, ctx: SetupContext<E>): any