@types/telegram-web-app 7.10.0 → 7.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- telegram-web-app/README.md +1 -1
- telegram-web-app/index.d.ts +16 -0
- telegram-web-app/package.json +2 -2
telegram-web-app/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for telegram-web-app (https://telegram.or
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/telegram-web-app.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, 04 Oct 2024 17:07:25 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
telegram-web-app/index.d.ts
CHANGED
|
@@ -566,6 +566,18 @@ interface BottomButton {
|
|
|
566
566
|
isVisible: boolean;
|
|
567
567
|
/** Shows whether the button is active. Set to true by default. */
|
|
568
568
|
isActive: boolean;
|
|
569
|
+
/** Shows whether the button has a shine effect. Set to false by default. */
|
|
570
|
+
hasShineEffect: boolean;
|
|
571
|
+
/**
|
|
572
|
+
* Position of the secondary button. Not defined for the main button.
|
|
573
|
+
* It applies only if both the main and secondary buttons are visible. Set to left by default.
|
|
574
|
+
* Supported values:
|
|
575
|
+
* - left, displayed to the left of the main button,
|
|
576
|
+
* - right, displayed to the right of the main button,
|
|
577
|
+
* - top, displayed above the main button,
|
|
578
|
+
* - bottom, displayed below the main button.
|
|
579
|
+
*/
|
|
580
|
+
position?: "left" | "right" | "top" | "bottom";
|
|
569
581
|
/** Readonly. Shows whether the button is displaying a loading indicator. */
|
|
570
582
|
isProgressVisible: boolean;
|
|
571
583
|
/** A method to set the button text. */
|
|
@@ -617,6 +629,10 @@ interface MainButtonParams {
|
|
|
617
629
|
color?: Color;
|
|
618
630
|
/** button text color */
|
|
619
631
|
text_color?: Color;
|
|
632
|
+
/** enable shine effect */
|
|
633
|
+
has_shine_effect?: boolean;
|
|
634
|
+
/** position of the secondary button */
|
|
635
|
+
position?: "left" | "right" | "top" | "bottom";
|
|
620
636
|
/** enable the button */
|
|
621
637
|
is_active?: boolean;
|
|
622
638
|
/** show the button */
|
telegram-web-app/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/telegram-web-app",
|
|
3
|
-
"version": "7.10.
|
|
3
|
+
"version": "7.10.1",
|
|
4
4
|
"description": "TypeScript definitions for telegram-web-app",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/telegram-web-app",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,6 +30,6 @@
|
|
|
30
30
|
},
|
|
31
31
|
"scripts": {},
|
|
32
32
|
"dependencies": {},
|
|
33
|
-
"typesPublisherContentHash": "
|
|
33
|
+
"typesPublisherContentHash": "dd411016825024a1d9831f7377413945af40bc47d3332d6e2bc950e461fe28cd",
|
|
34
34
|
"typeScriptVersion": "4.8"
|
|
35
35
|
}
|