7.2.0 • Published 1 year ago

twa-types v7.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Types

npm version

Types for Telegram Web Apps (TWA) SDK.

ts_AdobeExpress (2)

Installation

npm i twa-types

Usage Example

import { Telegram } from "twa-types";

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

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

Exported Types