decode-it
Version:
a simple zero-dependency type safe json decoder for typescript
7 lines (6 loc) • 329 B
TypeScript
import { AnyElementOf, ArrayTwoOrMore } from '../helperTypes';
import { toNativeType } from '../toNativeType';
import { Validator } from './Validator';
declare type union = <T extends ArrayTwoOrMore<Validator<any>>>(...itemValidators: T) => Validator<toNativeType<AnyElementOf<T>>>;
export declare const union: union;
export {};