Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
class matches.ShapeParser
import { matches } from "https://deno.land/x/embassyd_sdk@v0.3.4.3.0-alpha1/lib/esm/mod.js";
const { ShapeParser } = matches;

Given an object, we want to make sure the key exists and that the value on the key matches the parser

Constructors

new
ShapeParser(
parserMap,
isPartial,
parserKeys?,
description?,
)

Methods

parse(a, onParse)