twa-types
v7.2.0
Published
Types for Telegram Web Apps (TWA) SDK
Downloads
12
Maintainers
Readme
Types
Types for Telegram Web Apps (TWA) SDK.
Installation
npm i twa-types
Usage Example
import { Telegram } from "twa-types";
declare global {
interface Window {
Telegram: Telegram;
}
}
window.Telegram.WebApp.HapticFeedback.notificationOccurred("success");