Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/samualtnorman/predicates. A library of predicate functions and builders intended to be used with Ty
Something went wrong. Try again.
12345import type { Predicate, PredicateType } from "."
export const UnionSchema = <T extends Predicate<any>>(predicates: T[]) => (value: unknown): value is PredicateType<T> => predicates.some(predicate => predicate(value))