Projects T to an object containing only its writable properties.
T
Property value types and optional modifiers are preserved. Methods and writable function-valued properties are included.
Object type to project.
interface Example{ value: number; optional?: boolean; readonly id: string;}type Result = WritableProperties<Example>;// {// value: number;// optional?: boolean;// } Copy
interface Example{ value: number; optional?: boolean; readonly id: string;}type Result = WritableProperties<Example>;// {// value: number;// optional?: boolean;// }
Projects
Tto an object containing only its writable properties.Property value types and optional modifiers are preserved. Methods and writable function-valued properties are included.