import * as StringCheck from "../string"; import * as MixedCheck from "./mixed"; export type OneOfErrorTypeCode = StringCheck.StringErrorCode|MixedCheck.OneOfErrorCode; export function checkOneOf (mixed : any, arr : T[]) : undefined|OneOfErrorTypeCode { return StringCheck.checkStringPredicate(mixed, (str) => { return MixedCheck.checkOneOf(str, arr); }); }