import type { Predicate, PredicateType } from "." export const UnionSchema = >(predicates: T[]) => (value: unknown): value is PredicateType => predicates.some(predicate => predicate(value))