import * as t from 'io-ts' ; import { entriesExists } from '../entries_exist' ; import { entriesList } from '../entries_list' ; import { entriesMatch } from '../entry_match' ; import { entriesMatchAny } from '../entry_match_any' ; import { entriesMatchWildcard } from '../entry_match_wildcard' ; import { entriesNested } from '../entry_nested' ; export const entry = t . union ( [ entriesMatch , entriesMatchAny , entriesList , entriesExists , entriesMatchWildcard , ] ) ; export type Entry = t . TypeOf < typeof entry > ; export const entriesArray = t . array ( t . union ( [ entriesMatch , entriesMatchAny , entriesList , entriesExists , entriesNested , entriesMatchWildcard , ] ) ) ; export type EntriesArray = t . TypeOf < typeof entriesArray > ; export const entriesArrayOrUndefined = t . union ( [ entriesArray , t . undefined ] ) ; export type EntriesArrayOrUndefined = t . TypeOf < typeof entriesArrayOrUndefined > ;