Skip to main content
Go to Latest
class matches.GuardParser
implements IParser<A, B>
import { matches } from "https://deno.land/x/embassyd_sdk@v0.3.1.1.4/mod.ts";
const { GuardParser } = matches;

Constructors

new
GuardParser(
checkIsA: (value: A) => value is A & B,
typeName: string,
description?,
)

Methods

parse<C, D>(a: A, onParse: OnParse<A, B, C, D>): C | D