Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
function matches.some
Re-export
import { matches } from "https://deno.land/x/embassyd_sdk@v0.3.4.3.0-alpha1/mod.ts";
const { some } = matches;

Union is a good tool to make sure that the validated value is in the union of all the validators passed in. Basically an or operator for validators.

Type Parameters

RestParsers extends Parser<unknown, unknown>[]

Returns

SomeParsers<RestParsers>