Types
Types for TWA SDK
Install / Use
/learn @twa-dev/TypesREADME
Types
Types for Telegram Web Apps (TWA) SDK.

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
WebAppUserWebAppChatWebAppInitDataThemeParamsHapticFeedbackBackButtonBottomButtonMainButtonSecondaryButtonSettingsButtonEventNamesEventParamsPopupParamsPopupButtonWebAppScanQrPopupParamsCloudStorageBiometricManagerBiometricRequestAccessParamsBiometricAuthenticateParamsStoryShareParamsStoryWidgetLinkAccelerometerDeviceOrientationDeviceOrientationStartParamsGyroscopeGyroscopeStartParamsLocationManagerLocationDataSafeAreaInsetContentSafeAreaInsetEmojiStatusParamsDownloadFileParamsPlatforms
Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
Writing Hookify Rules
92.1kThis skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.
review-duplication
99.7kUse this skill during code reviews to proactively investigate the codebase for duplicated functionality, reinvented wheels, or failure to reuse existing project best practices and shared utilities.
