Skip to main content
Module

x/mtkruto/2_tl.ts>is

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
function is
import { is } from "https://deno.land/x/mtkruto@0.2.24/2_tl.ts";

Type Parameters

S extends keyof (Types & Functions)

Parameters

typeName: S
value: unknown

Returns

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