Projects T to an object containing only its writable non-callable properties.
T
Property value types and optional modifiers are preserved.
Object type to project.
interface Example{ value: number; optional?: string; callback: () => void; readonly id: string;}type Result = WritableDataProperties<Example>;// {// value: number;// optional?: string;// } Copy
interface Example{ value: number; optional?: string; callback: () => void; readonly id: string;}type Result = WritableDataProperties<Example>;// {// value: number;// optional?: string;// }
Projects
Tto an object containing only its writable non-callable properties.Property value types and optional modifiers are preserved.