Skip to content

MutableX

Category
X Series
Alias
MutableByKeys

Constructs a type by setting the properties specified by K(string literal or union of string literals) to mutable from T.

Usage

ts
import type { 
MutableX
} from '@utype/core'
type
Props
= {
readonly
name
: string;
readonly
age
: number;
readonly
visible
: boolean;
} // Expect: { name: string; age: number; readonly visible: boolean; } type
MutableXProps
=
MutableX
<
Props
, 'name' | 'age'>