mobx-state-tree
Version:
Opinionated, transactional, MobX powered state container
12 lines (11 loc) • 455 B
TypeScript
import { IType, type ISimpleType } from "../../internal";
export declare function frozen<C>(subType: IType<C, any, any>): IType<C, C, C>;
export declare function frozen<T>(defaultValue: T): IType<T | undefined | null, T, T>;
export declare function frozen<T = any>(): IType<T, T, T>;
/**
* Returns if a given value represents a frozen type.
*
* @param type
* @returns
*/
export declare function isFrozenType(type: unknown): type is ISimpleType<any>;