Skip to content

Commit 875ed64

Browse files
committed
types for 6.4 SDK version
1 parent f3dc521 commit 875ed64

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

index.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ export type PopupButton = {
116116
}
117117
);
118118

119+
export type ScanQrPopupParams = {
120+
text?: string;
121+
};
122+
119123
export type Platforms =
120124
| "android"
121125
| "android_x"
@@ -175,6 +179,12 @@ export interface WebApp {
175179
showAlert: (message: string, callback?: () => unknown) => void;
176180
enableClosingConfirmation: VoidFunction;
177181
disableClosingConfirmation: VoidFunction;
182+
showScanQrPopup: (
183+
params: ScanQrPopupParams,
184+
callback?: (text: string) => void | true
185+
) => void;
186+
closeScanQrPopup: () => void;
187+
readTextFromClipboard: (callback?: (text: string) => unknown) => void;
178188
ready: VoidFunction;
179189
}
180190

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@twa-dev/types",
3-
"version": "6.2.4",
3+
"version": "6.4.0",
44
"main": "index.js",
55
"description": "Types for Telegram Web Apps (TWA) SDK",
66
"keywords": [

0 commit comments

Comments
 (0)