From cf72855d16417624bdb35ca1dfa1f1effd86b573 Mon Sep 17 00:00:00 2001 From: rudyxu1102 Date: Tue, 17 Oct 2023 20:58:16 +0800 Subject: [PATCH] chore: cast Readonly type --- packages/runtime-core/src/componentOptions.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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