Represents a recursive readonly type where all nested properties are readonly.
The type to transform.
0.14.0
interface Config { server: { host: string; port: number; };}const cfg: DeepReadonly<Config> = { server: { host: "localhost", port: 8080 } };// cfg.server.host = "example.com"; // Error: cannot assign to a read-only property Copy
interface Config { server: { host: string; port: number; };}const cfg: DeepReadonly<Config> = { server: { host: "localhost", port: 8080 } };// cfg.server.host = "example.com"; // Error: cannot assign to a read-only property
Represents a recursive readonly type where all nested properties are readonly.