types
types copied to clipboard
Types for TWA SDK
Types
Types for Telegram Web Apps (TWA) SDK.

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");