Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mtkruto/1_utilities.ts>mustPromptOneOf

Cross-runtime JavaScript library for building Telegram clients
Latest
function mustPromptOneOf
import { mustPromptOneOf } from "https://deno.land/x/mtkruto@0.6.2/1_utilities.ts";

Type Parameters

T extends readonly string[]

Parameters

message: string
choices: T

Returns

T[number]