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

Returns

Parser<A, B | C>