Skip to main content
Module

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

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