import type { UnionToIntersection } from "@samual/lib" import type { Predicate, PredicateType } from "." export const IntersectSchema = >(predicates: T[]) => (value: unknown): value is UnionToIntersection> => predicates.every(predicate => predicate(value))