import * as NumberCheck from "../number"; import * as MixedCheck from "./mixed"; export type OneOfErrorTypeCode = NumberCheck.PotentiallyUnsafeNumberErrorCode|MixedCheck.OneOfErrorCode; export function checkOneOf (mixed : any, arr : T[]) : undefined|OneOfErrorTypeCode { return NumberCheck.checkPotentiallyUnsafeNumberPredicate(mixed, (num) => { return MixedCheck.checkOneOf(num, arr); }); }