Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
method matches.Validator.prototype.orParser
Re-export
import { matches } from "https://deno.land/x/embassyd_sdk@v0.3.3.0.4/dependencies.ts";
const { Validator } = matches;

Use this to combine parsers into one. This will make sure that one or the other parsers will run against the value.

Parameters

otherParser: IParser<A, C>