Skip to content

Mutable

type Mutable<T> = { -readonly [K in keyof T]: T[K] extends ReadonlyArray<infer U> ? U[] : T[K] };

Defined in: packages/analyzer/src/types.ts:40

Internal helper to strip readonly from array fields when a producer needs to mutate during construction. Never escape this beyond the file that builds the value.

Type Parameter
T