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

x/mtkruto/tl/1_utilities.ts>isOfEnum

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

Type Parameters

S extends keyof Enums

Parameters

enumName: S
value: unknown

Returns

value is Enums[S]