Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 562 Bytes

mutable-x.md

File metadata and controls

25 lines (18 loc) · 562 Bytes
category alias
X Series
MutableByKeys

MutableX

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

Usage

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; } // [!code highlight]
type MutableXProps = MutableX<Props, 'name' | 'age'>