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

x/ts_matches/src/parsers/bool-parser.ts>BoolParser

Being able to pattern match in typescript
Go to Latest
class BoolParser
implements IParser<unknown, boolean>
import { BoolParser } from "https://deno.land/x/ts_matches@v5.2.0/src/parsers/bool-parser.ts";

Constructors

new
BoolParser(description?)

Methods

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