Type Alias UnsafeMutable<T>

UnsafeMutable: { -readonly [P in keyof T]: T[P] }

Removes all readonly flags on a type (non-recursively), making it effectively mutable

Considered unsafe as removing readonly modifiers may break semantics in some cases

Type Parameters

  • T