Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
class matches.ShapeParser
import { matches } from "https://deno.land/x/embassyd_sdk@v0.3.4.0.0-alpha2/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)