Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ts_matches/src/parsers/nill-parser.ts>NilParser

Being able to pattern match in typescript
Latest
class NilParser
implements IParser<unknown, null | undefined>
import { NilParser } from "https://deno.land/x/ts_matches@v5.4.0/src/parsers/nill-parser.ts";

Constructors

new
NilParser(description?)

Methods

parse<C, D>(a: unknown, onParse: OnParse<unknown, null | undefined, C, D>): C | D