Skip to content

Commit

Permalink
chore: cast Readonly type
Browse files Browse the repository at this point in the history
  • Loading branch information
rudyxu1102 committed Oct 17, 2023
1 parent a43f217 commit cf72855
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/runtime-core/src/componentOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -429,10 +429,10 @@ export type StrictUnwrapAttrsType<
> = [keyof T] extends [never]
? Record<string, unknown>
: T extends new () => { $props: infer P }
? NonNullable<P>
? Readonly<NonNullable<P>>
: T extends (props: infer P, ...args: any) => any
? NonNullable<P>
: T
? Readonly<NonNullable<P>>
: Readonly<T>

export type ObjectWatchOptionItem = {
handler: WatchCallback | string
Expand Down

0 comments on commit cf72855

Please sign in to comment.