Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function matches.literals
Re-export
import { matches } from "https://deno.land/x/embassyd_sdk@v0.3.4.0.0-alpha2/dependencies.ts";
const { literals } = matches;

Type Parameters

A extends
| string
| number
| boolean
| null
| undefined
Rest extends Array<
| string
| number
| boolean
| null
| undefined
>

Parameters

firstValue: A
...restValues: Rest

Returns

Parser<unknown, A | OneOf<Rest>>