Skip to main content
Go to Latest
interface matches.ChainMatches
import { type matches } from "https://deno.land/x/embassyd_sdk@v0.3.1.1.4/dependencies.ts";
const { ChainMatches } = matches;

Type Parameters

In
optional
OutcomeType = never

Methods

when<A, B>(...args: In extends never ? never : WhenArgs<A, B>): ChainMatches<Exclude<In, A>, OutcomeType | B>
defaultTo<B>(value: B): B | OutcomeType
defaultToLazy<B>(getValue: () => B): B | OutcomeType
unwrap(): OutcomeType