Skip to main content
Go to Latest
function matches.some
Re-export
import { matches } from "https://deno.land/x/embassyd_sdk@v0.3.1.1.4/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>