Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cf72855

Browse files
committedOct 17, 2023
chore: cast Readonly type
1 parent a43f217 commit cf72855

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎packages/runtime-core/src/componentOptions.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -429,10 +429,10 @@ export type StrictUnwrapAttrsType<
429429
> = [keyof T] extends [never]
430430
? Record<string, unknown>
431431
: T extends new () => { $props: infer P }
432-
? NonNullable<P>
432+
? Readonly<NonNullable<P>>
433433
: T extends (props: infer P, ...args: any) => any
434-
? NonNullable<P>
435-
: T
434+
? Readonly<NonNullable<P>>
435+
: Readonly<T>
436436

437437
export type ObjectWatchOptionItem = {
438438
handler: WatchCallback | string

0 commit comments

Comments
 (0)
Please sign in to comment.