Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ts_matches/src/parsers/some-parser.ts

Being able to pattern match in typescript
Go to Latest
import * as tsMatches from "https://deno.land/x/ts_matches@v5.4.1/src/parsers/some-parser.ts";

Functions

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.