diff --git a/src/component/componentOptions.ts b/src/component/componentOptions.ts index 21083455..1030f30c 100644 --- a/src/component/componentOptions.ts +++ b/src/component/componentOptions.ts @@ -88,7 +88,7 @@ export type ComponentOptionsWithArrayProps< } & ThisType> export type ComponentOptionsWithoutProps< - Props = unknown, + Props = {}, RawBindings = Data, D = Data, C extends ComputedOptions = {}, diff --git a/src/component/defineComponent.ts b/src/component/defineComponent.ts index 6a904f22..36359147 100644 --- a/src/component/defineComponent.ts +++ b/src/component/defineComponent.ts @@ -17,8 +17,8 @@ export function defineComponent< C extends ComputedOptions = {}, M extends MethodOptions = {} >( - options: ComponentOptionsWithoutProps -): VueProxy + options: ComponentOptionsWithoutProps<{}, RawBindings, D, C, M> +): VueProxy<{}, RawBindings, D, C, M> // overload 2: object format with array props declaration // props inferred as { [key in PropNames]?: any }