New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

twa-sdk-types

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twa-sdk-types

Types for Telegram Web Apps (TWA) SDK

latest
Source
npmnpm
Version
9.5.0
Version published
Maintainers
1
Created
Source

Types for Telegram Web Apps (TWA) SDK

Telegram webapps docs NPM Version

twa-sdk-types is a TypeScript package that provides type definitions for the Telegram Web Apps SDK.

Usage

Install

npm install twa-sdk-types

Declare in global.d.ts

import { Telegram } from 'twa-sdk-types';

declare global {
  interface Window {
    Telegram: Telegram;
  }
}
window.Telegram.WebApp.HapticFeedback.notificationOccurred('success');

Versioning and Updates

Major and minor versions of the package will be synchronized with the SDK.

For example:

  • SDK v9.0 => twa-sdk-types@9.0.*

All fixes within a specific SDK version (e.g., v9.0) will be published as patch updates.

Update and generate

rebuild types

deno --allow-env --allow-read --allow-net --allow-write scrape/main.ts
npx prettier -w src/*

Build

npm run build

Publish or patch

npm version patch
npm publish

Todo

  • Update and generate with github cron actions

Keywords

telegram

FAQs

Package last updated on 25 Mar 2026

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