Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/feomasto/priv/deps.ts>args.valueErrors.InvalidChoice

Sync posts from Mastodon into FeoBlog
Go to Latest
class args.valueErrors.InvalidChoice
extends ValueError
import { args } from "https://deno.land/x/feomasto@v0.1.0/priv/deps.ts";
const { InvalidChoice } = args.valueErrors;

ValueError class for when raw input not matching any expected choice

Constructors

new
InvalidChoice(raw: string, choices: readonly ValidChoice[])

Type Parameters

ValidChoice extends string | number

Union type of valid choices