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

x/ts_matches/src/parsers/index.ts>Parser#parse

Being able to pattern match in typescript
Go to Latest
method Parser.prototype.parse
Re-export
import { Parser } from "https://deno.land/x/ts_matches@v5.2.1/src/parsers/index.ts";

Use this when you want to decide what happens on the succes and failure cases of parsing

Parameters

a: A
onParse: OnParse<A, B, C, D>