twa-sdk-types
v9.1.0
Published
Types for Telegram Web Apps (TWA) SDK
Downloads
14
Maintainers
Readme
Types for Telegram Web Apps (TWA) SDK
Usage
Install
npm install twa-sdk-typesDeclare 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=>[email protected].*
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 buildPublish or patch
npm version patch
npm publishTodo
- [ ] Update and generate with github cron actions
