UNPKG

mobx-state-tree

Version:

Opinionated, transactional, MobX powered state container

6 lines (5 loc) 403 B
import { ISimpleType } from "../../internal"; /** @hidden */ export type UnionStringArray<T extends readonly (string | number)[]> = T[number]; export declare function enumeration<T extends string | number>(options: readonly T[]): ISimpleType<UnionStringArray<T[]>>; export declare function enumeration<T extends string | number>(name: string, options: readonly T[]): ISimpleType<UnionStringArray<T[]>>;