Skip to content

twa-dev/types

Repository files navigation

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