Skip to main content
Module

x/ts_matches/src/parsers/index.ts>some

Being able to pattern match in typescript
Go to Latest
function some
Re-export
import { some } from "https://deno.land/x/ts_matches@v5.4.1/src/parsers/index.ts";

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>