Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/mtkruto/mod.ts>isOneOf

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
function isOneOf
Re-export
import { isOneOf } from "https://deno.land/x/mtkruto@0.2.30/mod.ts";

Type Parameters

S extends keyof (Types & Functions)

Parameters

typeNames: S[] | readonly S[]
value: unknown

Returns

value is S extends keyof Types ? Types[S] : S extends keyof Functions ? Functions[S] : never