Socket
Book a DemoInstallSign in
Socket

@twa-dev/types

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twa-dev/types

Types for Telegram Web Apps (TWA) SDK

latest
Source
npmnpm
Version
8.0.2
Version published
Maintainers
2
Created
Source

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

Keywords

telegram

FAQs

Package last updated on 04 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts