fix(types): ensure that DeepReadonly handles Ref type properly (#4714)
This commit is contained in:
parent
1779ff8eb0
commit
ed0071ac1a
@ -132,6 +132,8 @@ export type DeepReadonly<T> = T extends Builtin
|
||||
? WeakSet<DeepReadonly<U>>
|
||||
: T extends Promise<infer U>
|
||||
? Promise<DeepReadonly<U>>
|
||||
: T extends Ref<infer U>
|
||||
? Ref<DeepReadonly<U>>
|
||||
: T extends {}
|
||||
? { readonly [K in keyof T]: DeepReadonly<T[K]> }
|
||||
: Readonly<T>
|
||||
|
Loading…
Reference in New Issue
Block a user