@xyncnet/twa-types
v9.1.3
Published
Types for Telegram Web Apps (TWA) SDK
Maintainers
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
