@sensimods/utility-lab
Preparing search index...
DeepReadonly
Type Alias DeepReadonly<T>
DeepReadonly
:
T
extends
(
infer
R
)
[]
?
ReadonlyArray
<
DeepReadonly
<
R
>
>
:
T
extends
Function
?
T
:
T
extends
object
?
{
readonly
[
K
in
keyof
T
]
:
DeepReadonly
<
T
[
K
]
>
}
:
T
A utility type that recursively makes all properties of an object and its nested objects readonly.
Type Parameters
T
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@sensimods/utility-lab
Loading...
A utility type that recursively makes all properties of an object and its nested objects readonly.