Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@twa-dev/types

twa-dev65kMIT8.0.2

Types for Telegram Web Apps (TWA) SDK

telegram, typescript, ts, types, telegram web apps, telegram bot, bot

readme

Types

npm version

Types for Telegram Web Apps (TWA) SDK.

ts_AdobeExpress (2)

Installation

npm i @twa-dev/types

Usage Example

import { Telegram } from "@twa-dev/types";

declare global {
  interface Window {
    Telegram: Telegram;
  }
}

window.Telegram.WebApp.HapticFeedback.notificationOccurred("success");

Exported Types