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

Constructors

new
MappedAParser(
parent: Parser<A, B>,
map: (value: B) => B2,
mappingName?,
description?,
)

Methods

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