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

Given an object, we want to make sure the key exists and that the value on the key matches the parser Note: This will mutate the value sent through

Constructors

new
ArrayOfParser(parser: Parser<unknown, B>, description?)

Methods

parse<C, D>(a: unknown, onParse: OnParse<unknown, B[], C, D>): C | D