UNPKG

mutative

Version:

A JavaScript library for efficient immutable updates

10 lines (9 loc) 282 B
import { Draft, Immutable } from '../interface'; /** * Cast a value to an Draft type value. */ export declare function castDraft<T>(value: T): Draft<T>; /** * Cast a value to an Immutable type value. */ export declare function castImmutable<T>(value: T): Immutable<T>;