@tma.js/sdk 2.7.0 → 3.0.0

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.
Files changed (310) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +9 -9
  3. package/dist/dts/composables/AsyncMountable.d.ts +44 -0
  4. package/dist/dts/composables/Button.d.ts +140 -0
  5. package/dist/dts/composables/Mountable.d.ts +43 -0
  6. package/dist/dts/composables/Stateful.d.ts +35 -0
  7. package/dist/dts/errors.d.ts +41 -0
  8. package/dist/dts/features/BackButton/BackButton.d.ts +96 -0
  9. package/dist/dts/features/BackButton/exports.d.ts +2 -0
  10. package/dist/dts/features/BackButton/instance.d.ts +2 -0
  11. package/dist/dts/features/Biometry/Biometry.d.ts +122 -0
  12. package/dist/dts/features/Biometry/exports.d.ts +3 -0
  13. package/dist/dts/features/Biometry/instance.d.ts +2 -0
  14. package/dist/dts/features/Biometry/types.d.ts +84 -0
  15. package/dist/dts/features/ClosingBehavior/ClosingBehavior.d.ts +51 -0
  16. package/dist/dts/features/ClosingBehavior/exports.d.ts +2 -0
  17. package/dist/dts/features/ClosingBehavior/instance.d.ts +2 -0
  18. package/dist/dts/features/CloudStorage/CloudStorage.d.ts +90 -0
  19. package/dist/dts/features/CloudStorage/exports.d.ts +2 -0
  20. package/dist/dts/features/CloudStorage/instance.d.ts +2 -0
  21. package/dist/dts/features/HapticFeedback/HapticFeedback.d.ts +57 -0
  22. package/dist/dts/features/HapticFeedback/exports.d.ts +2 -0
  23. package/dist/dts/features/HapticFeedback/instance.d.ts +2 -0
  24. package/dist/dts/features/InitData/InitData.d.ts +84 -0
  25. package/dist/dts/features/InitData/exports.d.ts +2 -0
  26. package/dist/dts/features/InitData/instance.d.ts +2 -0
  27. package/dist/dts/features/Invoice/Invoice.d.ts +54 -0
  28. package/dist/dts/features/Invoice/exports.d.ts +2 -0
  29. package/dist/dts/features/Invoice/instance.d.ts +2 -0
  30. package/dist/dts/features/LocationManager/LocationManager.d.ts +74 -0
  31. package/dist/dts/features/LocationManager/exports.d.ts +3 -0
  32. package/dist/dts/features/LocationManager/instance.d.ts +2 -0
  33. package/dist/dts/features/LocationManager/types.d.ts +65 -0
  34. package/dist/dts/features/MainButton/MainButton.d.ts +214 -0
  35. package/dist/dts/features/MainButton/exports.d.ts +2 -0
  36. package/dist/dts/features/MainButton/instance.d.ts +2 -0
  37. package/dist/dts/features/MiniApp/MiniApp.d.ts +192 -0
  38. package/dist/dts/features/MiniApp/exports.d.ts +2 -0
  39. package/dist/dts/features/MiniApp/instance.d.ts +2 -0
  40. package/dist/dts/features/Popup/Popup.d.ts +56 -0
  41. package/dist/dts/features/Popup/exports.d.ts +3 -0
  42. package/dist/dts/features/Popup/instance.d.ts +2 -0
  43. package/dist/dts/features/Popup/prepareParams.d.ts +9 -0
  44. package/dist/dts/{components → features}/Popup/types.d.ts +5 -12
  45. package/dist/dts/features/QrScanner/QrScanner.d.ts +132 -0
  46. package/dist/dts/features/QrScanner/exports.d.ts +2 -0
  47. package/dist/dts/features/QrScanner/instance.d.ts +2 -0
  48. package/dist/dts/features/SecondaryButton/SecondaryButton.d.ts +253 -0
  49. package/dist/dts/features/SecondaryButton/exports.d.ts +2 -0
  50. package/dist/dts/features/SecondaryButton/instance.d.ts +2 -0
  51. package/dist/dts/features/SettingsButton/SettingsButton.d.ts +96 -0
  52. package/dist/dts/features/SettingsButton/exports.d.ts +2 -0
  53. package/dist/dts/features/SettingsButton/instance.d.ts +2 -0
  54. package/dist/dts/features/SwipeBehavior/SwipeBehavior.d.ts +62 -0
  55. package/dist/dts/features/SwipeBehavior/exports.d.ts +2 -0
  56. package/dist/dts/features/SwipeBehavior/instance.d.ts +2 -0
  57. package/dist/dts/features/ThemeParams/ThemeParams.d.ts +127 -0
  58. package/dist/dts/features/ThemeParams/exports.d.ts +2 -0
  59. package/dist/dts/features/ThemeParams/instance.d.ts +2 -0
  60. package/dist/dts/features/Viewport/Viewport.d.ts +220 -0
  61. package/dist/dts/features/Viewport/exports.d.ts +2 -0
  62. package/dist/dts/features/Viewport/instance.d.ts +2 -0
  63. package/dist/dts/features/emoji-status/exports.d.ts +2 -0
  64. package/dist/dts/features/emoji-status/requestEmojiStatusAccess.d.ts +16 -0
  65. package/dist/dts/features/emoji-status/setEmojiStatus.d.ts +28 -0
  66. package/dist/dts/features/home-screen/addToHomeScreen.d.ts +11 -0
  67. package/dist/dts/features/home-screen/checkHomeScreenStatus.d.ts +14 -0
  68. package/dist/dts/features/home-screen/exports.d.ts +2 -0
  69. package/dist/dts/features/links/exports.d.ts +3 -0
  70. package/dist/dts/features/links/openLink.d.ts +31 -0
  71. package/dist/dts/features/links/openTelegramLink.d.ts +18 -0
  72. package/dist/dts/features/links/shareURL.d.ts +18 -0
  73. package/dist/dts/features/privacy/exports.d.ts +3 -0
  74. package/dist/dts/features/privacy/requestContact.d.ts +59 -0
  75. package/dist/dts/features/privacy/requestPhoneAccess.d.ts +19 -0
  76. package/dist/dts/features/privacy/requestWriteAccess.d.ts +14 -0
  77. package/dist/dts/features/uncategorized/copyTextToClipboard.d.ts +5 -0
  78. package/dist/dts/features/uncategorized/downloadFile.d.ts +21 -0
  79. package/dist/dts/features/uncategorized/exports.d.ts +11 -0
  80. package/dist/dts/features/uncategorized/getCurrentTime.d.ts +15 -0
  81. package/dist/dts/features/uncategorized/hideKeyboard.d.ts +13 -0
  82. package/dist/dts/features/uncategorized/readTextFromClipboard.d.ts +13 -0
  83. package/dist/dts/features/uncategorized/retrieveAndroidDeviceData.d.ts +6 -0
  84. package/dist/dts/features/uncategorized/retrieveAndroidDeviceDataFrom.d.ts +14 -0
  85. package/dist/dts/features/uncategorized/sendData.d.ts +20 -0
  86. package/dist/dts/features/uncategorized/shareMessage.d.ts +14 -0
  87. package/dist/dts/features/uncategorized/shareStory.d.ts +50 -0
  88. package/dist/dts/features/uncategorized/switchInlineQuery.d.ts +28 -0
  89. package/dist/dts/fn-options/bottomButtonOptions.d.ts +11 -0
  90. package/dist/dts/fn-options/buttonOptions.d.ts +10 -0
  91. package/dist/dts/fn-options/createFnOption.d.ts +2 -0
  92. package/dist/dts/fn-options/sharedFeatureOptions.d.ts +8 -0
  93. package/dist/dts/fn-options/withInvokeCustomMethod.d.ts +11 -0
  94. package/dist/dts/fn-options/withPostEvent.d.ts +8 -0
  95. package/dist/dts/fn-options/withRequest.d.ts +8 -0
  96. package/dist/dts/fn-options/withStateRestore.d.ts +13 -0
  97. package/dist/dts/fn-options/withVersion.d.ts +9 -0
  98. package/dist/dts/globals/createRequestId.d.ts +4 -0
  99. package/dist/dts/globals/inline-mode.d.ts +4 -0
  100. package/dist/dts/globals/invokeCustomMethod.d.ts +16 -0
  101. package/dist/dts/globals/post-event.d.ts +4 -0
  102. package/dist/dts/globals/request.d.ts +3 -0
  103. package/dist/dts/globals/resetGlobals.d.ts +4 -0
  104. package/dist/dts/globals/signals-registry.d.ts +39 -0
  105. package/dist/dts/globals/themeParams.d.ts +4 -0
  106. package/dist/dts/globals/version.d.ts +4 -0
  107. package/dist/dts/helpers/access.d.ts +2 -0
  108. package/dist/dts/helpers/component-storage.d.ts +9 -0
  109. package/dist/dts/helpers/createIsSupportedSignal.d.ts +5 -0
  110. package/dist/dts/helpers/css-vars.d.ts +11 -0
  111. package/dist/dts/helpers/isColorDark.d.ts +11 -0
  112. package/dist/dts/{navigation/isPageReload.d.ts → helpers/navigation.d.ts} +1 -1
  113. package/dist/dts/helpers/removeUndefined.d.ts +10 -0
  114. package/dist/dts/helpers/shallowEqual.d.ts +1 -0
  115. package/dist/dts/index.d.ts +33 -168
  116. package/dist/dts/init.d.ts +42 -0
  117. package/dist/dts/types.d.ts +6 -0
  118. package/dist/dts/with-checks/throwifyWithChecksFp.d.ts +3 -0
  119. package/dist/dts/with-checks/withChecksFp.d.ts +172 -0
  120. package/dist/index.cjs +1 -3
  121. package/dist/index.cjs.map +1 -1
  122. package/dist/index.iife.js +3 -3
  123. package/dist/index.iife.js.map +1 -1
  124. package/dist/index.js +3811 -2897
  125. package/dist/index.js.map +1 -1
  126. package/package.json +19 -9
  127. package/dist/dts/bridge/captureSameReq.d.ts +0 -10
  128. package/dist/dts/bridge/events/event-emitter/createMiniAppsEventEmitter.d.ts +0 -15
  129. package/dist/dts/bridge/events/event-emitter/singleton.d.ts +0 -8
  130. package/dist/dts/bridge/events/event-handlers/cleanupEventHandlers.d.ts +0 -4
  131. package/dist/dts/bridge/events/event-handlers/defineEventHandlers.d.ts +0 -6
  132. package/dist/dts/bridge/events/event-handlers/emitMiniAppsEvent.d.ts +0 -9
  133. package/dist/dts/bridge/events/listening/off.d.ts +0 -8
  134. package/dist/dts/bridge/events/listening/on.d.ts +0 -12
  135. package/dist/dts/bridge/events/listening/subscribe.d.ts +0 -9
  136. package/dist/dts/bridge/events/listening/unsubscribe.d.ts +0 -7
  137. package/dist/dts/bridge/events/types.d.ts +0 -302
  138. package/dist/dts/bridge/invokeCustomMethod.d.ts +0 -23
  139. package/dist/dts/bridge/methods/createPostEvent.d.ts +0 -14
  140. package/dist/dts/bridge/methods/postEvent.d.ts +0 -40
  141. package/dist/dts/bridge/methods/types/custom-methods.d.ts +0 -57
  142. package/dist/dts/bridge/methods/types/haptic.d.ts +0 -40
  143. package/dist/dts/bridge/methods/types/index.d.ts +0 -4
  144. package/dist/dts/bridge/methods/types/methods.d.ts +0 -392
  145. package/dist/dts/bridge/methods/types/popup.d.ts +0 -49
  146. package/dist/dts/bridge/parseMessage.d.ts +0 -18
  147. package/dist/dts/bridge/request.d.ts +0 -53
  148. package/dist/dts/bridge/target-origin.d.ts +0 -18
  149. package/dist/dts/classes/State/State.d.ts +0 -46
  150. package/dist/dts/classes/State/types.d.ts +0 -29
  151. package/dist/dts/classes/WithStateUtils.d.ts +0 -18
  152. package/dist/dts/classes/WithSupports.d.ts +0 -19
  153. package/dist/dts/classes/WithSupportsAndStateUtils.d.ts +0 -24
  154. package/dist/dts/classes/WithSupportsAndTrackableState.d.ts +0 -16
  155. package/dist/dts/classes/WithTrackableState.d.ts +0 -16
  156. package/dist/dts/classnames/classNames.d.ts +0 -12
  157. package/dist/dts/classnames/mergeClassNames.d.ts +0 -14
  158. package/dist/dts/colors/isColorDark.d.ts +0 -6
  159. package/dist/dts/colors/isRGB.d.ts +0 -7
  160. package/dist/dts/colors/isRGBShort.d.ts +0 -7
  161. package/dist/dts/colors/toRGB.d.ts +0 -12
  162. package/dist/dts/colors/types.d.ts +0 -8
  163. package/dist/dts/components/BackButton/BackButton.d.ts +0 -41
  164. package/dist/dts/components/BackButton/initBackButton.d.ts +0 -7
  165. package/dist/dts/components/BackButton/types.d.ts +0 -25
  166. package/dist/dts/components/BiometryManager/BiometryManager.d.ts +0 -61
  167. package/dist/dts/components/BiometryManager/formatEvent.d.ts +0 -34
  168. package/dist/dts/components/BiometryManager/initBiometryManager.d.ts +0 -7
  169. package/dist/dts/components/BiometryManager/requestBiometryInfo.d.ts +0 -8
  170. package/dist/dts/components/BiometryManager/types.d.ts +0 -40
  171. package/dist/dts/components/ClosingBehavior/ClosingBehavior.d.ts +0 -26
  172. package/dist/dts/components/ClosingBehavior/initClosingBehavior.d.ts +0 -7
  173. package/dist/dts/components/ClosingBehavior/types.d.ts +0 -20
  174. package/dist/dts/components/CloudStorage/CloudStorage.d.ts +0 -47
  175. package/dist/dts/components/CloudStorage/initCloudStorage.d.ts +0 -7
  176. package/dist/dts/components/HapticFeedback/HapticFeedback.d.ts +0 -34
  177. package/dist/dts/components/HapticFeedback/initHapticFeedback.d.ts +0 -7
  178. package/dist/dts/components/InitData/InitData.d.ts +0 -55
  179. package/dist/dts/components/InitData/initInitData.d.ts +0 -7
  180. package/dist/dts/components/InitData/parseInitData.d.ts +0 -7
  181. package/dist/dts/components/InitData/parsers/chat.d.ts +0 -3
  182. package/dist/dts/components/InitData/parsers/initData.d.ts +0 -7
  183. package/dist/dts/components/InitData/parsers/user.d.ts +0 -3
  184. package/dist/dts/components/InitData/types.d.ts +0 -132
  185. package/dist/dts/components/Invoice/Invoice.d.ts +0 -31
  186. package/dist/dts/components/Invoice/initInvoice.d.ts +0 -7
  187. package/dist/dts/components/Invoice/types.d.ts +0 -20
  188. package/dist/dts/components/MainButton/MainButton.d.ts +0 -106
  189. package/dist/dts/components/MainButton/initMainButton.d.ts +0 -7
  190. package/dist/dts/components/MainButton/types.d.ts +0 -40
  191. package/dist/dts/components/MiniApp/MiniApp.d.ts +0 -121
  192. package/dist/dts/components/MiniApp/initMiniApp.d.ts +0 -7
  193. package/dist/dts/components/MiniApp/parsing/contact.d.ts +0 -7
  194. package/dist/dts/components/MiniApp/types.d.ts +0 -53
  195. package/dist/dts/components/Popup/Popup.d.ts +0 -30
  196. package/dist/dts/components/Popup/initPopup.d.ts +0 -7
  197. package/dist/dts/components/Popup/preparePopupParams.d.ts +0 -8
  198. package/dist/dts/components/QRScanner/QRScanner.d.ts +0 -33
  199. package/dist/dts/components/QRScanner/initQRScanner.d.ts +0 -7
  200. package/dist/dts/components/QRScanner/types.d.ts +0 -31
  201. package/dist/dts/components/SettingsButton/SettingsButton.d.ts +0 -37
  202. package/dist/dts/components/SettingsButton/initSettingsButton.d.ts +0 -7
  203. package/dist/dts/components/SettingsButton/types.d.ts +0 -25
  204. package/dist/dts/components/ThemeParams/ThemeParams.d.ts +0 -57
  205. package/dist/dts/components/ThemeParams/initThemeParams.d.ts +0 -7
  206. package/dist/dts/components/ThemeParams/keys.d.ts +0 -11
  207. package/dist/dts/components/ThemeParams/parsing/parseThemeParams.d.ts +0 -7
  208. package/dist/dts/components/ThemeParams/parsing/serializeThemeParams.d.ts +0 -6
  209. package/dist/dts/components/ThemeParams/parsing/themeParams.d.ts +0 -4
  210. package/dist/dts/components/ThemeParams/requestThemeParams.d.ts +0 -8
  211. package/dist/dts/components/ThemeParams/types.d.ts +0 -29
  212. package/dist/dts/components/Utils/Utils.d.ts +0 -77
  213. package/dist/dts/components/Utils/initUtils.d.ts +0 -7
  214. package/dist/dts/components/Viewport/Viewport.d.ts +0 -77
  215. package/dist/dts/components/Viewport/initViewport.d.ts +0 -7
  216. package/dist/dts/components/Viewport/requestViewport.d.ts +0 -13
  217. package/dist/dts/components/Viewport/types.d.ts +0 -35
  218. package/dist/dts/css-vars/bindMiniAppCSSVars.d.ts +0 -29
  219. package/dist/dts/css-vars/bindThemeParamsCSSVars.d.ts +0 -29
  220. package/dist/dts/css-vars/bindViewportCSSVars.d.ts +0 -32
  221. package/dist/dts/css-vars/setCSSVar.d.ts +0 -6
  222. package/dist/dts/debug/debug.d.ts +0 -14
  223. package/dist/dts/env/hasExternalNotify.d.ts +0 -10
  224. package/dist/dts/env/hasWebviewProxy.d.ts +0 -10
  225. package/dist/dts/env/initWeb.d.ts +0 -11
  226. package/dist/dts/env/isIframe.d.ts +0 -5
  227. package/dist/dts/env/isSSR.d.ts +0 -4
  228. package/dist/dts/env/isTMA.d.ts +0 -4
  229. package/dist/dts/env/mockTelegramEnv.d.ts +0 -7
  230. package/dist/dts/errors/SDKError.d.ts +0 -9
  231. package/dist/dts/errors/createError.d.ts +0 -10
  232. package/dist/dts/errors/errors.d.ts +0 -49
  233. package/dist/dts/errors/isSDKError.d.ts +0 -7
  234. package/dist/dts/errors/isSDKErrorOfType.d.ts +0 -8
  235. package/dist/dts/events/event-emitter/EventEmitter.d.ts +0 -54
  236. package/dist/dts/events/event-emitter/types.d.ts +0 -45
  237. package/dist/dts/events/onWindow.d.ts +0 -10
  238. package/dist/dts/events/types.d.ts +0 -6
  239. package/dist/dts/index.low-level.d.ts +0 -41
  240. package/dist/dts/launch-params/parseLaunchParams.d.ts +0 -7
  241. package/dist/dts/launch-params/retrieveFromLocation.d.ts +0 -7
  242. package/dist/dts/launch-params/retrieveFromPerformance.d.ts +0 -7
  243. package/dist/dts/launch-params/retrieveFromStorage.d.ts +0 -7
  244. package/dist/dts/launch-params/retrieveFromUrl.d.ts +0 -8
  245. package/dist/dts/launch-params/retrieveLaunchParams.d.ts +0 -7
  246. package/dist/dts/launch-params/saveToStorage.d.ts +0 -7
  247. package/dist/dts/launch-params/serializeLaunchParams.d.ts +0 -7
  248. package/dist/dts/launch-params/types.d.ts +0 -51
  249. package/dist/dts/logger/Logger.d.ts +0 -29
  250. package/dist/dts/misc/createCleanup.d.ts +0 -11
  251. package/dist/dts/misc/createComponentInitFn/createComponentInitFn.d.ts +0 -16
  252. package/dist/dts/misc/createComponentInitFn/types.d.ts +0 -54
  253. package/dist/dts/misc/createSingleton.d.ts +0 -15
  254. package/dist/dts/misc/isRecord.d.ts +0 -5
  255. package/dist/dts/misc/objectFromKeys.d.ts +0 -6
  256. package/dist/dts/navigation/BasicNavigator/BasicNavigator.d.ts +0 -118
  257. package/dist/dts/navigation/BasicNavigator/prepareItem.d.ts +0 -8
  258. package/dist/dts/navigation/BasicNavigator/types.d.ts +0 -37
  259. package/dist/dts/navigation/BrowserNavigator/BrowserNavigator.d.ts +0 -198
  260. package/dist/dts/navigation/BrowserNavigator/basicItemToBrowser.d.ts +0 -7
  261. package/dist/dts/navigation/BrowserNavigator/createBrowserNavigatorFromLocation.d.ts +0 -4
  262. package/dist/dts/navigation/BrowserNavigator/prepareItem.d.ts +0 -25
  263. package/dist/dts/navigation/BrowserNavigator/types.d.ts +0 -64
  264. package/dist/dts/navigation/createSafeURL.d.ts +0 -7
  265. package/dist/dts/navigation/drop.d.ts +0 -4
  266. package/dist/dts/navigation/ensurePrefix.d.ts +0 -7
  267. package/dist/dts/navigation/getFirstNavigationEntry.d.ts +0 -6
  268. package/dist/dts/navigation/getHash.d.ts +0 -15
  269. package/dist/dts/navigation/getPathname.d.ts +0 -7
  270. package/dist/dts/navigation/go.d.ts +0 -5
  271. package/dist/dts/navigation/initNavigator.d.ts +0 -9
  272. package/dist/dts/navigation/urlToPath.d.ts +0 -7
  273. package/dist/dts/parsing/ArrayParser/ArrayParser.d.ts +0 -17
  274. package/dist/dts/parsing/ArrayParser/types.d.ts +0 -12
  275. package/dist/dts/parsing/ValueParser/ValueParser.d.ts +0 -17
  276. package/dist/dts/parsing/ValueParser/types.d.ts +0 -28
  277. package/dist/dts/parsing/createTypeError.d.ts +0 -6
  278. package/dist/dts/parsing/createValueParserGenerator.d.ts +0 -10
  279. package/dist/dts/parsing/parseBySchema.d.ts +0 -9
  280. package/dist/dts/parsing/parsers/array.d.ts +0 -7
  281. package/dist/dts/parsing/parsers/boolean.d.ts +0 -6
  282. package/dist/dts/parsing/parsers/date.d.ts +0 -6
  283. package/dist/dts/parsing/parsers/json.d.ts +0 -9
  284. package/dist/dts/parsing/parsers/number.d.ts +0 -6
  285. package/dist/dts/parsing/parsers/rgb.d.ts +0 -7
  286. package/dist/dts/parsing/parsers/searchParams.d.ts +0 -9
  287. package/dist/dts/parsing/parsers/string.d.ts +0 -6
  288. package/dist/dts/parsing/toRecord.d.ts +0 -7
  289. package/dist/dts/parsing/types.d.ts +0 -30
  290. package/dist/dts/request-id/createRequestIdGenerator.d.ts +0 -6
  291. package/dist/dts/request-id/types.d.ts +0 -9
  292. package/dist/dts/storage/storage.d.ts +0 -42
  293. package/dist/dts/supports/createSupportsFn.d.ts +0 -12
  294. package/dist/dts/supports/createSupportsParamFn.d.ts +0 -16
  295. package/dist/dts/supports/supports.d.ts +0 -16
  296. package/dist/dts/supports/types.d.ts +0 -4
  297. package/dist/dts/timeout/createTimeoutError.d.ts +0 -7
  298. package/dist/dts/timeout/sleep.d.ts +0 -5
  299. package/dist/dts/timeout/withTimeout.d.ts +0 -6
  300. package/dist/dts/types/index.d.ts +0 -6
  301. package/dist/dts/types/logical.d.ts +0 -16
  302. package/dist/dts/types/methods.d.ts +0 -16
  303. package/dist/dts/types/misc.d.ts +0 -12
  304. package/dist/dts/types/platform.d.ts +0 -4
  305. package/dist/dts/types/unions.d.ts +0 -20
  306. package/dist/dts/types/utils.d.ts +0 -24
  307. package/dist/dts/version/compareVersions.d.ts +0 -10
  308. package/dist/dts/version/types.d.ts +0 -5
  309. package/dist/index.low-level.iife.js +0 -4
  310. package/dist/index.low-level.iife.js.map +0 -1
@@ -1,49 +0,0 @@
1
- /**
2
- * Specified Mini Apps method is unsupported.
3
- */
4
- export declare const ERR_METHOD_UNSUPPORTED = "ERR_METHOD_UNSUPPORTED";
5
- /**
6
- * Specified Mini Apps method parameter is unsupported.
7
- */
8
- export declare const ERR_METHOD_PARAMETER_UNSUPPORTED = "ERR_METHOD_PARAMETER_UNSUPPORTED";
9
- /**
10
- * Current environment is not Telegram application.
11
- */
12
- export declare const ERR_UNKNOWN_ENV = "ERR_UNKNOWN_ENV";
13
- /**
14
- * Telegram application returned and error while invoking custom method.
15
- */
16
- export declare const ERR_INVOKE_CUSTOM_METHOD_RESPONSE = "ERR_INVOKE_CUSTOM_METHOD_RESPONSE";
17
- /**
18
- * Timeout reached.
19
- */
20
- export declare const ERR_TIMED_OUT = "ERR_TIMED_OUT";
21
- /**
22
- * Value has unexpected type.
23
- */
24
- export declare const ERR_UNEXPECTED_TYPE = "ERR_UNEXPECTED_TYPE";
25
- /**
26
- * Something went wrong during value parsing.
27
- */
28
- export declare const ERR_PARSE = "ERR_PARSE";
29
- /**
30
- * Navigation entries list is empty.
31
- */
32
- export declare const ERR_NAVIGATION_HISTORY_EMPTY = "ERR_NAVIGATION_LIST_EMPTY";
33
- /**
34
- * Navigation entries cursor is invalid.
35
- */
36
- export declare const ERR_NAVIGATION_INDEX_INVALID = "ERR_NAVIGATION_CURSOR_INVALID";
37
- /**
38
- * Navigation entries item is invalid.
39
- */
40
- export declare const ERR_NAVIGATION_ITEM_INVALID = "ERR_NAVIGATION_ITEM_INVALID";
41
- /**
42
- * SSR component initialization failed.
43
- */
44
- export declare const ERR_SSR_INIT = "ERR_SSR_INIT";
45
- /**
46
- * Path starts from the invalid base.
47
- */
48
- export declare const ERR_INVALID_PATH_BASE = "ERR_INVALID_PATH_BASE";
49
- export type ErrorType = typeof ERR_METHOD_UNSUPPORTED | typeof ERR_METHOD_PARAMETER_UNSUPPORTED | typeof ERR_UNKNOWN_ENV | typeof ERR_INVOKE_CUSTOM_METHOD_RESPONSE | typeof ERR_TIMED_OUT | typeof ERR_PARSE | typeof ERR_UNEXPECTED_TYPE | typeof ERR_NAVIGATION_HISTORY_EMPTY | typeof ERR_NAVIGATION_INDEX_INVALID | typeof ERR_NAVIGATION_ITEM_INVALID | typeof ERR_SSR_INIT | typeof ERR_INVALID_PATH_BASE;
@@ -1,7 +0,0 @@
1
- import { SDKError } from './SDKError.js';
2
-
3
- /**
4
- * @returns True, if passed value is an instance of SDKError.
5
- * @param value - value to check.
6
- */
7
- export declare function isSDKError(value: unknown): value is SDKError;
@@ -1,8 +0,0 @@
1
- import { ErrorType } from './errors.js';
2
-
3
- /**
4
- * Returns true if passed value is an SDK error of specified type.
5
- * @param value - value to check.
6
- * @param type - error type.
7
- */
8
- export declare function isSDKErrorOfType(value: unknown, type: ErrorType): boolean;
@@ -1,54 +0,0 @@
1
- import { RemoveEventListenerFn } from '../types.js';
2
- import { EmptyEventName, EventListener, EventName, EventParams, NonEmptyEventName, SubscribeListener } from './types.js';
3
-
4
- export declare class EventEmitter<Schema> {
5
- private readonly listeners;
6
- private listenersCount;
7
- private subscribeListeners;
8
- /**
9
- * Removes all event listeners.
10
- */
11
- clear(): void;
12
- /**
13
- * Returns count of bound listeners.
14
- */
15
- get count(): number;
16
- /**
17
- * Emits known event which has no parameters.
18
- * @param event - event name.
19
- */
20
- emit<E extends EmptyEventName<Schema>>(event: E): void;
21
- /**
22
- * Emits known event which has parameters.
23
- * @param event - event name.
24
- * @param args - list of event listener arguments.
25
- */
26
- emit<E extends NonEmptyEventName<Schema>>(event: E, ...args: EventParams<Schema[E]>): void;
27
- /**
28
- * Adds new event listener.
29
- * @param event - event name.
30
- * @param listener - event listener.
31
- * @param once - should listener be called only once.
32
- * @returns Function to remove bound event listener.
33
- */
34
- on<E extends EventName<Schema>>(event: E, listener: EventListener<Schema[E]>, once?: boolean): RemoveEventListenerFn;
35
- /**
36
- * Removes event listener. In case, specified listener was bound several times, it removes
37
- * only a single one.
38
- * @param event - event name.
39
- * @param listener - event listener.
40
- */
41
- off<E extends EventName<Schema>>(event: E, listener: EventListener<Schema[E]>): void;
42
- /**
43
- * Adds a new event listener for all events.
44
- * @param listener - event listener.
45
- * @returns Function to remove event listener.
46
- */
47
- subscribe(listener: SubscribeListener<Schema>): RemoveEventListenerFn;
48
- /**
49
- * Removes global event listener. In case, specified listener was bound several times, it removes
50
- * only a single one.
51
- * @param listener - event listener.
52
- */
53
- unsubscribe(listener: SubscribeListener<Schema>): void;
54
- }
@@ -1,45 +0,0 @@
1
- import { If, IsNever, IsUndefined, Or } from '../../types/index.js';
2
-
3
- /**
4
- * Function accepting the list of passed arguments and returning nothing.
5
- */
6
- type VoidFunc<Args extends any[] = []> = (...args: Args) => void;
7
- /**
8
- * Accepts type assuming, it is responsible for describing event listener
9
- * parameters. Covers following cases:
10
- * 1. If function is passed, return its arguments.
11
- * 2. If never or void is passed, return empty tuple.
12
- * 3. If array is passed return this type.
13
- * 4. Otherwise, return tuple with passed type.
14
- */
15
- export type EventParams<Params> = Params extends any[] ? Params : Params extends (...args: any) => any ? Parameters<Params> : If<Or<IsNever<Params>, IsUndefined<Params>>, [
16
- ], Params extends void ? [] : [Params]>;
17
- /**
18
- * Returns function that represents event listener with specified
19
- * list of parameters.
20
- */
21
- export type EventListener<Params> = VoidFunc<EventParams<Params>>;
22
- /**
23
- * Returns event names.
24
- */
25
- export type EventName<Schema> = Extract<keyof Schema, string>;
26
- /**
27
- * Returns event names which do not require any arguments.
28
- */
29
- export type EmptyEventName<Schema> = {
30
- [E in EventName<Schema>]: EventParams<Schema[E]> extends [] ? E : never;
31
- }[EventName<Schema>];
32
- /**
33
- * Returns event names which require arguments.
34
- */
35
- export type NonEmptyEventName<Schema> = Exclude<EventName<Schema>, EmptyEventName<Schema>>;
36
- /**
37
- * Represents any listener, which could be used in EventEmitter.subscribe.
38
- */
39
- export type SubscribeListener<Schema> = (payload: {
40
- [E in EventName<Schema>]: {
41
- event: E;
42
- args: EventParams<Schema[E]>;
43
- };
44
- }[EventName<Schema>]) => void;
45
- export {};
@@ -1,10 +0,0 @@
1
- import { RemoveEventListenerFn } from './types.js';
2
-
3
- /**
4
- * Adds new event listener using window.addEventListener.
5
- * @param type - event name.
6
- * @param listener - event listener.
7
- * @param options - listening options.
8
- * @returns Function to remove event listener.
9
- */
10
- export declare function onWindow<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): RemoveEventListenerFn;
@@ -1,6 +0,0 @@
1
- /**
2
- * Function, which removes bound event listener.
3
- */
4
- export interface RemoveEventListenerFn {
5
- (): void;
6
- }
@@ -1,41 +0,0 @@
1
- /**
2
- * Bridge.
3
- */
4
- export { off } from './bridge/events/listening/off.js';
5
- export { on } from './bridge/events/listening/on.js';
6
- export { subscribe } from './bridge/events/listening/subscribe.js';
7
- export { unsubscribe } from './bridge/events/listening/unsubscribe.js';
8
- export { createPostEvent } from './bridge/methods/createPostEvent.js';
9
- export { postEvent } from './bridge/methods/postEvent.js';
10
- export { setTargetOrigin, targetOrigin } from './bridge/target-origin.js';
11
- export { captureSameReq } from './bridge/captureSameReq.js';
12
- export { invokeCustomMethod } from './bridge/invokeCustomMethod.js';
13
- export { request } from './bridge/request.js';
14
- /**
15
- * Debug.
16
- */
17
- export { setDebug } from './debug/debug.js';
18
- /**
19
- * Env.
20
- */
21
- export { isIframe } from './env/isIframe.js';
22
- export { isTMA } from './env/isTMA.js';
23
- /**
24
- * Errors.
25
- */
26
- export * from './errors/errors.js';
27
- export { isSDKError } from './errors/isSDKError.js';
28
- export { isSDKErrorOfType } from './errors/isSDKErrorOfType.js';
29
- export { SDKError } from './errors/SDKError.js';
30
- /**
31
- * Init.
32
- */
33
- export { initWeb } from './env/initWeb.js';
34
- /**
35
- * Launch params.
36
- */
37
- export { retrieveLaunchParams } from './launch-params/retrieveLaunchParams.js';
38
- /**
39
- * Supports.
40
- */
41
- export { supports } from './supports/supports.js';
@@ -1,7 +0,0 @@
1
- import { LaunchParams } from './types.js';
2
-
3
- /**
4
- * Parses value as launch parameters.
5
- * @param value - value to parse.
6
- */
7
- export declare function parseLaunchParams(value: unknown): LaunchParams;
@@ -1,7 +0,0 @@
1
- import { LaunchParams } from './types.js';
2
-
3
- /**
4
- * @returns Launch parameters from the current window location hash.
5
- * @throws Error if function was unable to extract launch parameters from the window location hash.
6
- */
7
- export declare function retrieveFromLocation(): LaunchParams;
@@ -1,7 +0,0 @@
1
- import { LaunchParams } from './types.js';
2
-
3
- /**
4
- * @returns Launch parameters based on the first navigation entry.
5
- * @throws Error if function was unable to extract launch parameters from the navigation entry.
6
- */
7
- export declare function retrieveFromPerformance(): LaunchParams;
@@ -1,7 +0,0 @@
1
- import { LaunchParams } from './types.js';
2
-
3
- /**
4
- * @returns Launch parameters stored in the session storage.
5
- * @throws Error if function was unable to extract launch parameters from the window location hash.
6
- */
7
- export declare function retrieveFromStorage(): LaunchParams;
@@ -1,8 +0,0 @@
1
- import { LaunchParams } from './types.js';
2
-
3
- /**
4
- * @param urlString - URL to extract launch parameters from.
5
- * @returns Launch parameters from the specified URL.
6
- * @throws Error if function was unable to extract launch parameters from the passed URL.
7
- */
8
- export declare function retrieveFromUrl(urlString: string): LaunchParams;
@@ -1,7 +0,0 @@
1
- import { LaunchParams } from './types.js';
2
-
3
- /**
4
- * @returns Launch parameters from any known source.
5
- * @throws Error if extraction was unsuccessful.
6
- */
7
- export declare function retrieveLaunchParams(): LaunchParams;
@@ -1,7 +0,0 @@
1
- import { LaunchParams } from './types.js';
2
-
3
- /**
4
- * Saves specified launch parameters in the session storage.
5
- * @param value - launch params to save.
6
- */
7
- export declare function saveToStorage(value: LaunchParams): void;
@@ -1,7 +0,0 @@
1
- import { LaunchParams } from './types.js';
2
-
3
- /**
4
- * Converts launch parameters to its initial representation.
5
- * @param value - launch parameters.
6
- */
7
- export declare function serializeLaunchParams(value: LaunchParams): string;
@@ -1,51 +0,0 @@
1
- import { InitDataParsed } from '../components/InitData/types.js';
2
- import { ThemeParamsParsed } from '../components/ThemeParams/types.js';
3
- import { Platform } from '../types/platform.js';
4
-
5
- /**
6
- * Telegram Mini Apps launch parameters.
7
- * @see https://docs.telegram-mini-apps.com/platform/launch-parameters
8
- */
9
- export interface LaunchParams {
10
- /**
11
- * True if Mini App is currently launched in inline mode.
12
- */
13
- botInline?: boolean;
14
- /**
15
- * Current launch init data. Can be missing in case, application was launched via
16
- * KeyboardButton.
17
- */
18
- initData?: InitDataParsed;
19
- /**
20
- * The same as initData but in initial, raw format.
21
- */
22
- initDataRaw?: string;
23
- /**
24
- * Current Telegram application identifier.
25
- */
26
- platform: Platform;
27
- /**
28
- * True if application is required to show the Settings Button.
29
- */
30
- showSettings?: boolean;
31
- /**
32
- * Start parameter passed in the application link.
33
- */
34
- startParam?: string;
35
- /**
36
- * Mini App palette settings.
37
- */
38
- themeParams: ThemeParamsParsed;
39
- /**
40
- * Current Mini Apps version.
41
- */
42
- version: string;
43
- }
44
- /**
45
- * Known launch parameter name.
46
- */
47
- export type LaunchParamName = keyof LaunchParams;
48
- /**
49
- * Picks specified launch params.
50
- */
51
- export type PickLaunchParams<LP extends LaunchParamName> = Pick<LaunchParams, LP>;
@@ -1,29 +0,0 @@
1
- /**
2
- * Message log level.
3
- */
4
- export type LogLevel = 'log' | 'error';
5
- export interface LoggerOptions {
6
- bgColor?: string;
7
- textColor?: string;
8
- }
9
- export declare class Logger implements Pick<Console, 'log' | 'error'> {
10
- private readonly scope;
11
- private readonly options;
12
- constructor(scope: string, options?: LoggerOptions);
13
- /**
14
- * Prints message into a console in case, logger is currently enabled.
15
- * @param level - log level.
16
- * @param args - arguments.
17
- */
18
- private print;
19
- /**
20
- * Prints error message into a console.
21
- * @param args
22
- */
23
- error(...args: any[]): void;
24
- /**
25
- * Prints log message into a console.
26
- * @param args
27
- */
28
- log(...args: any[]): void;
29
- }
@@ -1,11 +0,0 @@
1
- import { CleanupFn } from '../types/index.js';
2
-
3
- /**
4
- * Returns a tuple, containing function to add cleanup, call cleanup, and flag showing whether
5
- * cleanup was called. Cleanup will not be performed in case, it was done before.
6
- */
7
- export declare function createCleanup(...fns: (CleanupFn | CleanupFn[])[]): [
8
- add: (fn: CleanupFn) => void,
9
- cleanup: () => void,
10
- cleanedUp: boolean
11
- ];
@@ -1,16 +0,0 @@
1
- import { StorageKey, StorageValue } from '../../storage/storage.js';
2
- import { FactoryDynamic, FactoryStatic, InitStaticComponentFn, InitDynamicComponentFn, WithOnChange } from './types.js';
3
-
4
- /**
5
- * Creates a new init function based on factory, creating a component, not synchronizing its
6
- * state with the session storage.
7
- * @param factory - function creating new component instance.
8
- */
9
- export declare function createComponentInitFn<R>(factory: FactoryStatic<R>): InitStaticComponentFn<R>;
10
- /**
11
- * Creates a new init function based on factory, creating a component, synchronizing its
12
- * state with the session storage.
13
- * @param factory - function creating new component instance.
14
- * @param storageKey - storage key to restore component from.
15
- */
16
- export declare function createComponentInitFn<SK extends StorageKey, R extends WithOnChange<StorageValue<SK>> | Promise<WithOnChange<StorageValue<SK>>>>(storageKey: SK, factory: FactoryDynamic<R, SK>): InitDynamicComponentFn<R>;
@@ -1,54 +0,0 @@
1
- import { PostEvent } from '../../bridge/methods/postEvent.js';
2
- import { LaunchParams } from '../../launch-params/types.js';
3
- import { CreateRequestIdFn } from '../../request-id/types.js';
4
- import { StorageKey, StorageValue } from '../../storage/storage.js';
5
- import { CleanupFn, If, IsNever } from '../../types/index.js';
6
- import { RemoveEventListenerFn } from '../../events/types.js';
7
-
8
- /**
9
- * Object, which supports tracking its state changes.
10
- */
11
- export interface WithOnChange<State> {
12
- on(event: 'change', listener: (state: State) => void): RemoveEventListenerFn;
13
- }
14
- /**
15
- * Options passed to a component factory.
16
- */
17
- export type FactoryOptions<State, SideEffects extends boolean> = LaunchParams & {
18
- postEvent: PostEvent;
19
- createRequestId: CreateRequestIdFn;
20
- } & If<IsNever<State>, {}, {
21
- state?: State;
22
- }> & If<SideEffects, {
23
- addCleanup(fn: CleanupFn): void;
24
- }, {}>;
25
- export interface Factory<Result, SideEffects extends boolean, State> {
26
- /**
27
- * Creates a new component instance.
28
- * @param options - factory options.
29
- */
30
- (options: FactoryOptions<State, SideEffects>): Result;
31
- }
32
- export interface FactoryStatic<Result> extends Factory<Result, false, never> {
33
- }
34
- export interface FactoryDynamic<Result, SK extends StorageKey> extends Factory<Result, true, StorageValue<SK>> {
35
- }
36
- export interface InitComponentFn<Result, SideEffects extends boolean> {
37
- /**
38
- * Initializes a new static component instance.
39
- */
40
- (): If<SideEffects, [
41
- /**
42
- * Execution result.
43
- */
44
- result: Result,
45
- /**
46
- * Cleanup function.
47
- */
48
- cleanup: CleanupFn
49
- ], Result>;
50
- }
51
- export interface InitStaticComponentFn<Result> extends InitComponentFn<Result, false> {
52
- }
53
- export interface InitDynamicComponentFn<Result> extends InitComponentFn<Result, true> {
54
- }
@@ -1,15 +0,0 @@
1
- /**
2
- * Creates resettable singleton. We mostly need it for test purposes.
3
- * @param create - function which creates singleton entity.
4
- * @param onReset - function which will be called in case, singleton was reset.
5
- */
6
- export declare function createSingleton<T>(create: (reset: () => void) => T, onReset?: (entity: T) => void): [
7
- /**
8
- * Returns singleton entity.
9
- */
10
- get: () => T,
11
- /**
12
- * Resets last stored entity.
13
- */
14
- reset: () => void
15
- ];
@@ -1,5 +0,0 @@
1
- /**
2
- * States that passed value is Record and not Array.
3
- * @param value - value to check.
4
- */
5
- export declare function isRecord(value: unknown): value is Record<string, unknown>;
@@ -1,6 +0,0 @@
1
- /**
2
- * Creates object with specified keys and value.
3
- * @param keys - object keys.
4
- * @param value - keys value.
5
- */
6
- export declare function objectFromKeys<K extends string, V>(keys: K[], value: V): Record<K, V>;
@@ -1,118 +0,0 @@
1
- import { PostEvent } from '../../bridge/methods/postEvent.js';
2
- import { EventEmitter } from '../../events/event-emitter/EventEmitter.js';
3
- import { BasicNavigatorAnyHistoryItem, BasicNavigatorEvents, BasicNavigatorHistoryItem } from './types.js';
4
-
5
- type Emitter<Params> = EventEmitter<BasicNavigatorEvents<Params>>;
6
- export declare class BasicNavigator<Params = {}> {
7
- /**
8
- * Currently active history item.
9
- */
10
- private _index;
11
- /**
12
- * Function to call Mini Apps methods.
13
- * @default Global `postEvent` function.
14
- */
15
- private readonly postEvent;
16
- /**
17
- * Navigation history.
18
- */
19
- readonly history: Readonly<BasicNavigatorHistoryItem<Params>>[];
20
- private readonly ee;
21
- constructor(
22
- /**
23
- * Navigation history.
24
- */
25
- history: readonly BasicNavigatorAnyHistoryItem<Params>[],
26
- /**
27
- * Currently active history item.
28
- */
29
- _index: number,
30
- /**
31
- * Function to call Mini Apps methods.
32
- * @default Global `postEvent` function.
33
- */
34
- postEvent?: PostEvent);
35
- /**
36
- * True, if current navigator is currently attached.
37
- */
38
- private attached;
39
- /**
40
- * Allows this navigator to control the `BackButton` visibility state. It also tracks the
41
- * `BackButton` clicks and calls the `back` method.
42
- */
43
- attach(): void;
44
- /**
45
- * Goes to the previous history item.
46
- */
47
- back: () => void;
48
- /**
49
- * Currently active history item.
50
- */
51
- get current(): Readonly<BasicNavigatorHistoryItem<Params>>;
52
- /**
53
- * Prevents current navigator from controlling the BackButton visibility state.
54
- */
55
- detach(): void;
56
- /**
57
- * Goes to the next history item.
58
- */
59
- forward(): void;
60
- /**
61
- * Changes currently active history item index by the specified delta. This method doesn't
62
- * change index in case, the updated index points to the non-existing history item. This behavior
63
- * is preserved until the `fit` argument is specified.
64
- * @param delta - index delta.
65
- * @param fit - cuts the delta argument to fit the bounds `[0, history.length - 1]`.
66
- */
67
- go(delta: number, fit?: boolean): void;
68
- /**
69
- * Goes to the specified index. Method does nothing in case, passed index is out of bounds.
70
- *
71
- * If "fit" option was specified and index is out of bounds, it will be cut to the nearest
72
- * bound.
73
- * @param index - target index.
74
- * @param fit - cuts the index argument to fit the bounds `[0, history.length - 1]`.
75
- */
76
- goTo(index: number, fit?: boolean): void;
77
- /**
78
- * True if navigator has items before the current item.
79
- */
80
- get hasPrev(): boolean;
81
- /**
82
- * True if navigator has items after the current item.
83
- */
84
- get hasNext(): boolean;
85
- /**
86
- * Currently active history item index.
87
- */
88
- get index(): number;
89
- /**
90
- * Adds new event listener.
91
- */
92
- on: Emitter<Params>['on'];
93
- /**
94
- * Removes event listener.
95
- */
96
- off: Emitter<Params>['off'];
97
- /**
98
- * Adds a new history item removing all after the current one.
99
- * @param item - item to add.
100
- */
101
- push(item: BasicNavigatorAnyHistoryItem<Params>): void;
102
- /**
103
- * Replaces the current history item.
104
- * @param item - item to replace the current item with.
105
- */
106
- replace(item: BasicNavigatorAnyHistoryItem<Params>): void;
107
- /**
108
- * Sets history item by the specified index.
109
- * @param index - history item index to replace.
110
- * @param historyItem - history item to set.
111
- */
112
- private replaceAndMove;
113
- /**
114
- * Actualizes the `BackButton` visibility state.
115
- */
116
- private sync;
117
- }
118
- export {};
@@ -1,8 +0,0 @@
1
- import { BasicNavigatorAnyHistoryItem, BasicNavigatorHistoryItem } from './types.js';
2
-
3
- /**
4
- * Converts any known history item type to the local one.
5
- * @param item - history item presented as a string or an object.
6
- * @param relativePathname - relative pathname.
7
- */
8
- export declare function prepareItem<Params>(item: BasicNavigatorAnyHistoryItem<Params>, relativePathname: string): Readonly<BasicNavigatorHistoryItem<Params>>;
@@ -1,37 +0,0 @@
1
- import { BasicNavigator } from './BasicNavigator.js';
2
-
3
- /**
4
- * History item used by the `BasicNavigator`.
5
- */
6
- export interface BasicNavigatorHistoryItem<Params> {
7
- id: string;
8
- pathname: string;
9
- params?: Params;
10
- }
11
- /**
12
- * History item used by the `BasicNavigator` methods.
13
- */
14
- export type BasicNavigatorAnyHistoryItem<Params> = string | Partial<BasicNavigatorHistoryItem<Params>>;
15
- /**
16
- * Events supported by `BasicNavigator`.
17
- */
18
- export interface BasicNavigatorEvents<Params> {
19
- change: {
20
- /**
21
- * Navigator instance.
22
- */
23
- navigator: BasicNavigator<Params>;
24
- /**
25
- * Navigator cursor delta.
26
- */
27
- delta: number;
28
- /**
29
- * Previous active history item.
30
- */
31
- from: BasicNavigatorHistoryItem<Params>;
32
- /**
33
- * Currently active history item.
34
- */
35
- to: BasicNavigatorHistoryItem<Params>;
36
- };
37
- }