UNPKG

355 BTypeScriptView Raw
1import { ISimpleType } from "../../internal";
2/** @hidden */
3export declare type UnionStringArray<T extends string[]> = T[number];
4export declare function enumeration<T extends string>(options: T[]): ISimpleType<UnionStringArray<T[]>>;
5export declare function enumeration<T extends string>(name: string, options: T[]): ISimpleType<UnionStringArray<T[]>>;