Import
import { any } from "@typed/guard";Signatures
export declare function any<const GS extends Readonly<Record<string, GuardInput<any, any, any, any>>>>(guards: GS): Guard<AnyInput<GS>, AnyOutput<GS>, Guard.Error<GS[keyof GS]>, Guard.Services<GS[keyof GS]>>;Why
Ordered first-match dispatch turns independently composable Guards into a deterministic tagged union without treating None as failure.
Ownership and lifetime
Construction snapshots own enumerable entries and acquires no resources; each run executes candidates sequentially until the first Some.
Examples
import { any, liftPredicate } from "@typed/guard"
const classify = any({ text: liftPredicate((u: unknown): u is string => typeof u === "string") })