Skip to main content
Go to Latest
class matches.OrParsers
implements IParser<A | A2, B | B2>
import { matches } from "https://deno.land/x/embassyd_sdk@v0.3.1.1.4/mod.ts";
const { OrParsers } = matches;

Constructors

new
OrParsers(
parent: Parser<A, B>,
otherParser: Parser<A2, B2>,
description?,
)

Methods

parse<C, D>(a: A & A2, onParse: OnParse<A | A2, B | B2, C, D>): C | D