Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
method matches.Parser.prototype.castPromise
Re-export
import { matches } from "https://deno.land/x/embassyd_sdk@v0.3.4-alpha1/dependencies.ts";
const { Parser } = matches;

This is the like the unsafe parser, it assumes the happy path and will throw and return a failed promise during failure.

Parameters

value: A

Returns

Promise<B>