Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 359 Bytes

mutable.md

File metadata and controls

20 lines (13 loc) · 359 Bytes
category
Object Operation

Mutable

Like Readonly, but it will remove the readonly of the object property.

Usage

import type { Mutable } from '@utype/core'

type Props = { readonly name: string; }

// Expect: { name: string } // [!code highlight]
type MutableProps = Mutable<Props>