@twa-dev/types
v8.0.2
Published
Types for Telegram Web Apps (TWA) SDK
Readme
Types
Types for Telegram Web Apps (TWA) SDK.

Installation
npm i @twa-dev/typesUsage Example
import { Telegram } from "@twa-dev/types";
declare global {
interface Window {
Telegram: Telegram;
}
}
window.Telegram.WebApp.HapticFeedback.notificationOccurred("success");Exported Types
WebAppUserWebAppChatWebAppInitDataThemeParamsHapticFeedbackBackButtonBottomButtonMainButtonSecondaryButtonSettingsButtonEventNamesEventParamsPopupParamsPopupButtonWebAppScanQrPopupParamsCloudStorageBiometricManagerBiometricRequestAccessParamsBiometricAuthenticateParamsStoryShareParamsStoryWidgetLinkAccelerometerDeviceOrientationDeviceOrientationStartParamsGyroscopeGyroscopeStartParamsLocationManagerLocationDataSafeAreaInsetContentSafeAreaInsetEmojiStatusParamsDownloadFileParamsPlatforms
