fix(types): ensure correct public props interface for defineComponent instance type

fix #1385
This commit is contained in:
Evan You
2020-06-16 11:59:43 -04:00
parent 8904dec00b
commit 2961e149c9
2 changed files with 45 additions and 31 deletions

View File

@@ -174,7 +174,7 @@ export function defineComponent<
>
): ComponentPublicInstanceConstructor<
CreateComponentPublicInstance<
ExtractPropTypes<PropsOptions>,
ExtractPropTypes<PropsOptions, false>,
RawBindings,
D,
C,
@@ -182,7 +182,7 @@ export function defineComponent<
Mixin,
Extends,
E,
VNodeProps & ExtractPropTypes<PropsOptions, false>
VNodeProps
>
> &
ComponentOptionsWithObjectProps<