Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ts_matches/src/parsers/interfaces.ts>OrParser

Being able to pattern match in typescript
Go to Latest
type alias OrParser
import { type OrParser } from "https://deno.land/x/ts_matches@v5.2.1/src/parsers/interfaces.ts";
definition: [P1, P2] extends [Parser<infer A1, infer B1>, Parser<infer A2, infer B2>] ? Parser<A1 | A2, B1 | B2> : never