diff --git a/packages/runtime-core/src/componentOptions.ts b/packages/runtime-core/src/componentOptions.ts index 2bd8b329732..3b3516ed5a2 100644 --- a/packages/runtime-core/src/componentOptions.ts +++ b/packages/runtime-core/src/componentOptions.ts @@ -429,10 +429,10 @@ export type StrictUnwrapAttrsType< > = [keyof T] extends [never] ? Record : T extends new () => { $props: infer P } - ? NonNullable

+ ? Readonly> : T extends (props: infer P, ...args: any) => any - ? NonNullable

- : T + ? Readonly> + : Readonly export type ObjectWatchOptionItem = { handler: WatchCallback | string