diff --git a/packages/runtime-core/src/apiDefineComponent.ts b/packages/runtime-core/src/apiDefineComponent.ts index 24a483358b6..0a58954526c 100644 --- a/packages/runtime-core/src/apiDefineComponent.ts +++ b/packages/runtime-core/src/apiDefineComponent.ts @@ -210,7 +210,8 @@ export function defineComponent< : ExtractPropTypes : { [key in RuntimePropsKeys]?: any } : TypeProps, - ResolvedProps = Readonly>, + ResolvedProps = Readonly & + Readonly>, TypeRefs extends Record = {}, >( options: { diff --git a/packages/runtime-core/src/componentOptions.ts b/packages/runtime-core/src/componentOptions.ts index 2a39f45b685..f864f39e419 100644 --- a/packages/runtime-core/src/componentOptions.ts +++ b/packages/runtime-core/src/componentOptions.ts @@ -1279,7 +1279,9 @@ export type ComponentOptionsWithObjectProps< Directives extends Record = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, - Props = Prettify & EmitsToProps>>, + Props = Prettify< + Readonly> & Readonly> + >, Defaults = ExtractDefaultPropTypes, > = ComponentOptionsBase< Props,