@postnord/pn-marketweb-components 2.0.140 → 2.0.142

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 (665) hide show
  1. package/cjs/{index-e3e27c79.js → index-4199ff85.js} +595 -278
  2. package/cjs/{index-28bbc937.js → index-95e5b7f9.js} +1 -1
  3. package/cjs/loader.cjs.js +3 -2
  4. package/cjs/pn-bonus-progressbar-level.cjs.entry.js +2 -2
  5. package/cjs/pn-bonus-progressbar.cjs.entry.js +2 -2
  6. package/cjs/pn-breakpoints.cjs.entry.js +2 -2
  7. package/cjs/pn-chart.cjs.entry.js +8 -7
  8. package/cjs/pn-charts-card.cjs.entry.js +9 -2
  9. package/cjs/pn-choice-button.cjs.entry.js +5 -2
  10. package/cjs/pn-customernumber-selector-option.cjs.entry.js +2 -2
  11. package/cjs/pn-customernumber-selector.cjs.entry.js +2 -2
  12. package/cjs/pn-filter-checkbox.cjs.entry.js +5 -2
  13. package/cjs/pn-find-price-result.cjs.entry.js +7 -4
  14. package/cjs/{pn-find-price-store-0b8c195c.js → pn-find-price-store-6b418730.js} +1 -1
  15. package/cjs/pn-find-price.cjs.entry.js +4 -4
  16. package/cjs/pn-find-service-and-price-result.cjs.entry.js +4 -4
  17. package/cjs/{pn-find-service-and-price-store-16a7936c.js → pn-find-service-and-price-store-6e26630d.js} +1 -1
  18. package/cjs/pn-find-service-and-price.cjs.entry.js +4 -4
  19. package/cjs/pn-language-selector_9.cjs.entry.js +16 -39
  20. package/cjs/pn-line-shape.cjs.entry.js +2 -2
  21. package/cjs/pn-mainnav-link.cjs.entry.js +4 -10
  22. package/cjs/{pn-mainnav-store-61a75ea0.js → pn-mainnav-store-8c337865.js} +1 -1
  23. package/cjs/pn-market-web-components.cjs.js +6 -2
  24. package/cjs/pn-marketweb-input.cjs.entry.js +2 -7
  25. package/cjs/pn-marketweb-search.cjs.entry.js +2 -6
  26. package/cjs/pn-marketweb-sitefooter.cjs.entry.js +10 -15
  27. package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js +2 -2
  28. package/cjs/pn-marketweb-siteheader-login-links_2.cjs.entry.js +3 -5
  29. package/cjs/pn-marketweb-siteheader.cjs.entry.js +8 -35
  30. package/cjs/pn-parcel-tracker.cjs.entry.js +2 -2
  31. package/cjs/pn-pex-pricefinder.cjs.entry.js +2 -5
  32. package/cjs/pn-product-card_4.cjs.entry.js +16 -7
  33. package/cjs/pn-product-pricelist-result.cjs.entry.js +3 -3
  34. package/cjs/pn-product-pricelist.cjs.entry.js +4 -4
  35. package/cjs/pn-product-tile-info_2.cjs.entry.js +10 -3
  36. package/cjs/pn-product-tile.cjs.entry.js +2 -2
  37. package/cjs/pn-profile-modal-customernumber.cjs.entry.js +2 -2
  38. package/cjs/pn-profile-modal-profile.cjs.entry.js +4 -4
  39. package/cjs/{pn-profile-modal-store-6117e304.js → pn-profile-modal-store-947b08ae.js} +1 -1
  40. package/cjs/pn-profile-modal-type.cjs.entry.js +4 -4
  41. package/cjs/pn-profile-modal.cjs.entry.js +4 -4
  42. package/cjs/pn-profile-selector-option.cjs.entry.js +2 -2
  43. package/cjs/pn-profile-selector.cjs.entry.js +5 -5
  44. package/cjs/pn-proxio-pricegroup.cjs.entry.js +3 -5
  45. package/cjs/pn-proxio-productcard_4.cjs.entry.js +12 -5
  46. package/cjs/pn-quick-cta.cjs.entry.js +2 -2
  47. package/cjs/pn-quote-card.cjs.entry.js +2 -3
  48. package/cjs/pn-sidenav-level.cjs.entry.js +4 -4
  49. package/cjs/pn-sidenav-link.cjs.entry.js +4 -12
  50. package/cjs/{pn-sidenav-store-d9bd9e00.js → pn-sidenav-store-d2389306.js} +1 -1
  51. package/cjs/pn-sidenav-togglebutton.cjs.entry.js +4 -5
  52. package/cjs/pn-sidenav.cjs.entry.js +4 -6
  53. package/cjs/pn-site-footer_2.cjs.entry.js +4 -5
  54. package/cjs/pn-spotlight.cjs.entry.js +2 -2
  55. package/cjs/pn-stats-info-data.cjs.entry.js +8 -8
  56. package/cjs/pn-stats-info.cjs.entry.js +2 -2
  57. package/cjs/pn-teaser-card.cjs.entry.js +3 -4
  58. package/collection/collection-manifest.json +2 -2
  59. package/collection/components/cards/pn-quote-card/pn-line-shape/pn-line-shape.js +12 -11
  60. package/collection/components/cards/pn-quote-card/pn-quote-card.js +68 -79
  61. package/collection/components/cards/pn-teaser-card/pn-teaser-card.js +109 -113
  62. package/collection/components/charts/pn-chart/pn-chart.js +81 -74
  63. package/collection/components/charts/pn-charts-card/pn-charts-card.js +142 -146
  64. package/collection/components/cta/pn-parcel-tracker/pn-parcel-tracker.js +133 -128
  65. package/collection/components/cta/pn-quick-cta/pn-quick-cta.js +51 -49
  66. package/collection/components/cta/pn-spotlight/pn-spotlight.js +51 -51
  67. package/collection/components/data-visualization/pn-stats-info/pn-stats-info-data/pn-stats-info-data.js +119 -114
  68. package/collection/components/data-visualization/pn-stats-info/pn-stats-info.js +82 -77
  69. package/collection/components/input/pn-bonus-progressbar/pn-bonus-progressbar-level.js +93 -87
  70. package/collection/components/input/pn-bonus-progressbar/pn-bonus-progressbar.js +193 -195
  71. package/collection/components/input/pn-choice-button/pn-choice-button.js +145 -137
  72. package/collection/components/input/pn-filter-checkbox/pn-filter-checkbox.js +128 -122
  73. package/collection/components/input/pn-marketweb-input/pn-marketweb-input.js +347 -355
  74. package/collection/components/input/pn-marketweb-search/pn-marketweb-search.js +258 -260
  75. package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter-types.js +0 -3
  76. package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.js +201 -221
  77. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.js +95 -90
  78. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.js +122 -117
  79. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.js +195 -204
  80. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js +212 -205
  81. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search.js +170 -172
  82. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js +474 -524
  83. package/collection/components/minor/pn-titletag/pn-titletag.js +51 -49
  84. package/collection/components/navigation/pn-language-selector/pn-language-selector-option.js +119 -123
  85. package/collection/components/navigation/pn-language-selector/pn-language-selector.js +71 -64
  86. package/collection/components/navigation/pn-mainnav/pn-mainnav-level.js +58 -58
  87. package/collection/components/navigation/pn-mainnav/pn-mainnav-link.js +92 -97
  88. package/collection/components/navigation/pn-mainnav/pn-mainnav-list.js +39 -33
  89. package/collection/components/navigation/pn-mainnav/pn-mainnav.js +182 -183
  90. package/collection/components/navigation/pn-sidenav/pn-sidenav-level.js +29 -22
  91. package/collection/components/navigation/pn-sidenav/pn-sidenav-link.js +128 -134
  92. package/collection/components/navigation/pn-sidenav/pn-sidenav-togglebutton.js +39 -34
  93. package/collection/components/navigation/pn-sidenav/pn-sidenav.js +71 -66
  94. package/collection/components/navigation/pn-site-footer/pn-site-footer-col.css +11 -29
  95. package/collection/components/navigation/pn-site-footer/pn-site-footer-col.js +34 -29
  96. package/collection/components/navigation/pn-site-footer/pn-site-footer.js +68 -75
  97. package/collection/components/navigation/pn-site-selector/pn-site-selector-item.js +85 -89
  98. package/collection/components/navigation/pn-site-selector/pn-site-selector.js +73 -73
  99. package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector-option.js +68 -67
  100. package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector.js +90 -90
  101. package/collection/components/profile/pn-profile-modal/pn-profile-modal-customernumber.js +85 -79
  102. package/collection/components/profile/pn-profile-modal/pn-profile-modal-profile.js +182 -188
  103. package/collection/components/profile/pn-profile-modal/pn-profile-modal-type.js +91 -84
  104. package/collection/components/profile/pn-profile-modal/pn-profile-modal.js +116 -115
  105. package/collection/components/profile/pn-profile-selector/pn-profile-selector-option.js +68 -67
  106. package/collection/components/profile/pn-profile-selector/pn-profile-selector.js +78 -76
  107. package/collection/components/utilities/pn-breakpoints/pn-breakpoints.js +48 -42
  108. package/collection/components/widgets/pn-find-price/pn-find-price-result.js +163 -179
  109. package/collection/components/widgets/pn-find-price/pn-find-price.js +99 -113
  110. package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price-result.js +66 -67
  111. package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price.js +133 -148
  112. package/collection/components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.js +87 -102
  113. package/collection/components/widgets/pn-product-card/pn-product-card-info.js +92 -94
  114. package/collection/components/widgets/pn-product-card/pn-product-card-price.js +138 -131
  115. package/collection/components/widgets/pn-product-card/pn-product-card.js +12 -21
  116. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist-result.js +101 -108
  117. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.js +137 -140
  118. package/collection/components/widgets/pn-product-tile/pn-product-tile-info.js +70 -62
  119. package/collection/components/widgets/pn-product-tile/pn-product-tile-price.js +87 -83
  120. package/collection/components/widgets/pn-product-tile/pn-product-tile.js +12 -16
  121. package/collection/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.js +130 -145
  122. package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-description.js +87 -82
  123. package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-information.js +55 -57
  124. package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-pricelink.js +70 -61
  125. package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard.js +12 -20
  126. package/collection/docs/installation/installation.stories.js +21 -0
  127. package/custom-elements/index.js +142 -193
  128. package/esm/{index-7b21ecff.js → index-7f77b0ba.js} +1 -1
  129. package/esm/{index-5397620b.js → index-c118284d.js} +595 -279
  130. package/esm/loader.js +3 -2
  131. package/esm/pn-bonus-progressbar-level.entry.js +2 -2
  132. package/esm/pn-bonus-progressbar.entry.js +2 -2
  133. package/esm/pn-breakpoints.entry.js +2 -2
  134. package/esm/pn-chart.entry.js +8 -7
  135. package/esm/pn-charts-card.entry.js +9 -2
  136. package/esm/pn-choice-button.entry.js +5 -2
  137. package/esm/pn-customernumber-selector-option.entry.js +2 -2
  138. package/esm/pn-customernumber-selector.entry.js +2 -2
  139. package/esm/pn-filter-checkbox.entry.js +5 -2
  140. package/esm/pn-find-price-result.entry.js +7 -4
  141. package/esm/{pn-find-price-store-b4556c9b.js → pn-find-price-store-2cef65c5.js} +1 -1
  142. package/esm/pn-find-price.entry.js +4 -4
  143. package/esm/pn-find-service-and-price-result.entry.js +4 -4
  144. package/esm/{pn-find-service-and-price-store-65df46a0.js → pn-find-service-and-price-store-f09ca219.js} +1 -1
  145. package/esm/pn-find-service-and-price.entry.js +4 -4
  146. package/esm/pn-language-selector_9.entry.js +16 -39
  147. package/esm/pn-line-shape.entry.js +2 -2
  148. package/esm/pn-mainnav-link.entry.js +4 -10
  149. package/esm/{pn-mainnav-store-28571e54.js → pn-mainnav-store-5d91f523.js} +1 -1
  150. package/esm/pn-market-web-components.js +3 -2
  151. package/esm/pn-marketweb-input.entry.js +2 -7
  152. package/esm/pn-marketweb-search.entry.js +2 -6
  153. package/esm/pn-marketweb-sitefooter.entry.js +10 -15
  154. package/esm/pn-marketweb-siteheader-login-linklist.entry.js +2 -2
  155. package/esm/pn-marketweb-siteheader-login-links_2.entry.js +3 -5
  156. package/esm/pn-marketweb-siteheader.entry.js +8 -35
  157. package/esm/pn-parcel-tracker.entry.js +2 -2
  158. package/esm/pn-pex-pricefinder.entry.js +2 -5
  159. package/esm/pn-product-card_4.entry.js +16 -7
  160. package/esm/pn-product-pricelist-result.entry.js +3 -3
  161. package/esm/pn-product-pricelist.entry.js +4 -4
  162. package/esm/pn-product-tile-info_2.entry.js +10 -3
  163. package/esm/pn-product-tile.entry.js +2 -2
  164. package/esm/pn-profile-modal-customernumber.entry.js +2 -2
  165. package/esm/pn-profile-modal-profile.entry.js +4 -4
  166. package/esm/{pn-profile-modal-store-ae9e0d5a.js → pn-profile-modal-store-81f53310.js} +1 -1
  167. package/esm/pn-profile-modal-type.entry.js +4 -4
  168. package/esm/pn-profile-modal.entry.js +4 -4
  169. package/esm/pn-profile-selector-option.entry.js +2 -2
  170. package/esm/pn-profile-selector.entry.js +5 -5
  171. package/esm/pn-proxio-pricegroup.entry.js +3 -5
  172. package/esm/pn-proxio-productcard_4.entry.js +12 -5
  173. package/esm/pn-quick-cta.entry.js +2 -2
  174. package/esm/pn-quote-card.entry.js +2 -3
  175. package/esm/pn-sidenav-level.entry.js +4 -4
  176. package/esm/pn-sidenav-link.entry.js +4 -12
  177. package/esm/{pn-sidenav-store-50b186d6.js → pn-sidenav-store-94be19c8.js} +1 -1
  178. package/esm/pn-sidenav-togglebutton.entry.js +4 -5
  179. package/esm/pn-sidenav.entry.js +4 -6
  180. package/esm/pn-site-footer_2.entry.js +4 -5
  181. package/esm/pn-spotlight.entry.js +2 -2
  182. package/esm/pn-stats-info-data.entry.js +8 -8
  183. package/esm/pn-stats-info.entry.js +2 -2
  184. package/esm/pn-teaser-card.entry.js +3 -4
  185. package/esm/polyfills/css-shim.js +1 -1
  186. package/esm-es5/MarketWebContextService-872043cc.js +1 -1
  187. package/esm-es5/MarketWebLoginManager-9499bd89.js +1 -1
  188. package/esm-es5/convert-f6377d13.js +1 -1
  189. package/esm-es5/{index-7b21ecff.js → index-7f77b0ba.js} +1 -1
  190. package/esm-es5/index-c118284d.js +2 -0
  191. package/esm-es5/loader.js +1 -1
  192. package/esm-es5/pn-bonus-progressbar-level.entry.js +1 -1
  193. package/esm-es5/pn-bonus-progressbar.entry.js +1 -1
  194. package/esm-es5/pn-breakpoints.entry.js +1 -1
  195. package/esm-es5/pn-chart.entry.js +2 -2
  196. package/esm-es5/pn-charts-card.entry.js +1 -1
  197. package/esm-es5/pn-choice-button.entry.js +1 -1
  198. package/esm-es5/pn-customernumber-selector-option.entry.js +1 -1
  199. package/esm-es5/pn-customernumber-selector.entry.js +1 -1
  200. package/esm-es5/pn-filter-checkbox.entry.js +1 -1
  201. package/esm-es5/pn-find-price-result.entry.js +1 -1
  202. package/esm-es5/{pn-find-price-store-b4556c9b.js → pn-find-price-store-2cef65c5.js} +1 -1
  203. package/esm-es5/pn-find-price.entry.js +1 -1
  204. package/esm-es5/pn-find-service-and-price-result.entry.js +1 -1
  205. package/esm-es5/{pn-find-service-and-price-store-65df46a0.js → pn-find-service-and-price-store-f09ca219.js} +1 -1
  206. package/esm-es5/pn-find-service-and-price.entry.js +1 -1
  207. package/esm-es5/pn-language-selector_9.entry.js +1 -1
  208. package/esm-es5/pn-line-shape.entry.js +1 -1
  209. package/esm-es5/pn-mainnav-link.entry.js +1 -1
  210. package/esm-es5/{pn-mainnav-store-28571e54.js → pn-mainnav-store-5d91f523.js} +1 -1
  211. package/esm-es5/pn-market-web-components.js +1 -1
  212. package/esm-es5/pn-marketweb-input.entry.js +1 -1
  213. package/esm-es5/pn-marketweb-search.entry.js +1 -1
  214. package/esm-es5/pn-marketweb-sitefooter.entry.js +1 -1
  215. package/esm-es5/pn-marketweb-siteheader-login-linklist.entry.js +1 -1
  216. package/esm-es5/pn-marketweb-siteheader-login-links_2.entry.js +1 -1
  217. package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
  218. package/esm-es5/pn-parcel-tracker.entry.js +1 -1
  219. package/esm-es5/pn-pex-pricefinder.entry.js +1 -1
  220. package/esm-es5/pn-product-card_4.entry.js +1 -1
  221. package/esm-es5/pn-product-pricelist-result.entry.js +1 -1
  222. package/esm-es5/pn-product-pricelist.entry.js +1 -1
  223. package/esm-es5/pn-product-tile-info_2.entry.js +1 -1
  224. package/esm-es5/pn-product-tile.entry.js +1 -1
  225. package/esm-es5/pn-profile-modal-customernumber.entry.js +1 -1
  226. package/esm-es5/pn-profile-modal-profile.entry.js +1 -1
  227. package/esm-es5/{pn-profile-modal-store-ae9e0d5a.js → pn-profile-modal-store-81f53310.js} +1 -1
  228. package/esm-es5/pn-profile-modal-type.entry.js +1 -1
  229. package/esm-es5/pn-profile-modal.entry.js +1 -1
  230. package/esm-es5/pn-profile-selector-option.entry.js +1 -1
  231. package/esm-es5/pn-profile-selector.entry.js +1 -1
  232. package/esm-es5/pn-proxio-pricegroup.entry.js +1 -1
  233. package/esm-es5/pn-proxio-productcard_4.entry.js +1 -1
  234. package/esm-es5/pn-quick-cta.entry.js +1 -1
  235. package/esm-es5/pn-quote-card.entry.js +1 -1
  236. package/esm-es5/pn-sidenav-level.entry.js +1 -1
  237. package/esm-es5/pn-sidenav-link.entry.js +1 -1
  238. package/esm-es5/{pn-sidenav-store-50b186d6.js → pn-sidenav-store-94be19c8.js} +1 -1
  239. package/esm-es5/pn-sidenav-togglebutton.entry.js +1 -1
  240. package/esm-es5/pn-sidenav.entry.js +1 -1
  241. package/esm-es5/pn-site-footer_2.entry.js +1 -1
  242. package/esm-es5/pn-spotlight.entry.js +1 -1
  243. package/esm-es5/pn-stats-info-data.entry.js +1 -1
  244. package/esm-es5/pn-stats-info.entry.js +1 -1
  245. package/esm-es5/pn-teaser-card.entry.js +1 -1
  246. package/package.json +3 -2
  247. package/pn-market-web-components/p-09d66012.system.entry.js +1 -0
  248. package/pn-market-web-components/{p-1c38553b.system.entry.js → p-0c46847e.system.entry.js} +1 -1
  249. package/pn-market-web-components/p-0fbcacf3.system.entry.js +1 -0
  250. package/pn-market-web-components/p-0ffa3353.entry.js +1 -0
  251. package/pn-market-web-components/p-1545fb34.entry.js +1 -0
  252. package/pn-market-web-components/p-156fedd7.entry.js +1 -0
  253. package/pn-market-web-components/p-15e680a8.entry.js +1 -0
  254. package/pn-market-web-components/{p-28bad7f5.system.entry.js → p-16afb058.system.entry.js} +1 -1
  255. package/pn-market-web-components/p-17fb8d9e.entry.js +1 -0
  256. package/pn-market-web-components/p-19b622e7.entry.js +1 -0
  257. package/pn-market-web-components/p-1a9b2a0e.system.entry.js +1 -0
  258. package/pn-market-web-components/{p-a43543e5.system.entry.js → p-1ae6cc5f.system.entry.js} +1 -1
  259. package/pn-market-web-components/p-1c382898.entry.js +1 -0
  260. package/pn-market-web-components/{p-fc1083d2.system.entry.js → p-1d50340b.system.entry.js} +1 -1
  261. package/pn-market-web-components/p-1f8423d6.entry.js +1 -0
  262. package/pn-market-web-components/{p-1ce871c5.system.entry.js → p-1fb4eae4.system.entry.js} +1 -1
  263. package/pn-market-web-components/{p-80dce81e.system.entry.js → p-2145d5e0.system.entry.js} +1 -1
  264. package/pn-market-web-components/p-22a60cb6.system.entry.js +1 -0
  265. package/pn-market-web-components/p-247cd393.entry.js +1 -0
  266. package/pn-market-web-components/p-2967a563.entry.js +1 -0
  267. package/pn-market-web-components/p-31fd7a95.system.js +1 -1
  268. package/pn-market-web-components/p-34c0b146.entry.js +1 -0
  269. package/pn-market-web-components/p-34fefe22.entry.js +1 -0
  270. package/pn-market-web-components/p-37d26cef.entry.js +1 -0
  271. package/pn-market-web-components/p-38f135fd.entry.js +1 -0
  272. package/pn-market-web-components/{p-a5f75560.system.js → p-396b254a.system.js} +1 -1
  273. package/pn-market-web-components/{p-94958580.system.js → p-3a450371.system.js} +1 -1
  274. package/pn-market-web-components/p-41b34b21.entry.js +1 -0
  275. package/pn-market-web-components/p-4305724d.entry.js +1 -0
  276. package/pn-market-web-components/{p-add7d76c.system.js → p-441249d9.system.js} +1 -1
  277. package/pn-market-web-components/p-44c05fba.entry.js +1 -0
  278. package/pn-market-web-components/p-44f58f15.js +1 -0
  279. package/pn-market-web-components/p-4653f5db.system.entry.js +1 -0
  280. package/pn-market-web-components/p-47d717a3.entry.js +1 -0
  281. package/pn-market-web-components/{p-18380cb2.system.entry.js → p-488a5506.system.entry.js} +1 -1
  282. package/pn-market-web-components/p-48c74c53.entry.js +1 -0
  283. package/pn-market-web-components/p-49f60496.entry.js +1 -0
  284. package/pn-market-web-components/p-4a8e35d3.system.entry.js +1 -0
  285. package/pn-market-web-components/{p-198d9c77.system.entry.js → p-4ccf1b55.system.entry.js} +1 -1
  286. package/pn-market-web-components/{p-7079df88.system.entry.js → p-4d561de4.system.entry.js} +1 -1
  287. package/pn-market-web-components/p-4ef54288.entry.js +1 -0
  288. package/pn-market-web-components/p-507f8886.entry.js +1 -0
  289. package/pn-market-web-components/{p-74d35edf.system.entry.js → p-545a40a7.system.entry.js} +1 -1
  290. package/pn-market-web-components/{p-2b67469f.system.entry.js → p-5a41c1bb.system.entry.js} +1 -1
  291. package/pn-market-web-components/{p-723b9901.system.entry.js → p-5a506356.system.entry.js} +1 -1
  292. package/pn-market-web-components/p-5a6761da.js +1 -0
  293. package/pn-market-web-components/{p-8117b79e.system.entry.js → p-68324e6f.system.entry.js} +1 -1
  294. package/pn-market-web-components/{p-7b9fb94f.system.entry.js → p-6d050c3a.system.entry.js} +1 -1
  295. package/pn-market-web-components/{p-a275bffb.system.entry.js → p-6e43a937.system.entry.js} +1 -1
  296. package/pn-market-web-components/{p-02ea55ad.system.js → p-6f1d6a1a.system.js} +1 -1
  297. package/pn-market-web-components/p-73ee3141.entry.js +1 -0
  298. package/pn-market-web-components/p-7c1b31e8.js +2 -0
  299. package/pn-market-web-components/p-7d992089.entry.js +1 -0
  300. package/pn-market-web-components/p-7decf8dd.entry.js +1 -0
  301. package/pn-market-web-components/p-7dff99ed.entry.js +1 -0
  302. package/pn-market-web-components/p-8079dfd5.system.entry.js +1 -0
  303. package/pn-market-web-components/p-82db879c.entry.js +1 -0
  304. package/pn-market-web-components/p-833bab34.entry.js +1 -0
  305. package/pn-market-web-components/{p-290d5824.system.entry.js → p-853e6559.system.entry.js} +1 -1
  306. package/pn-market-web-components/p-8766fa86.system.js +1 -1
  307. package/pn-market-web-components/{p-cd68d0e8.system.entry.js → p-8879ac54.system.entry.js} +1 -1
  308. package/pn-market-web-components/{p-679ebd2a.system.entry.js → p-8a834594.system.entry.js} +1 -1
  309. package/pn-market-web-components/p-8acb60c5.entry.js +1 -0
  310. package/pn-market-web-components/p-8b28ac30.entry.js +1 -0
  311. package/pn-market-web-components/{p-450cbe76.system.entry.js → p-8ca063a9.system.entry.js} +1 -1
  312. package/pn-market-web-components/{p-9edaf6b6.system.entry.js → p-8cefd900.system.entry.js} +1 -1
  313. package/pn-market-web-components/{p-58a57436.system.entry.js → p-8fee0115.system.entry.js} +1 -1
  314. package/pn-market-web-components/{p-aa271997.system.entry.js → p-9010c32a.system.entry.js} +1 -1
  315. package/pn-market-web-components/p-9a6af82e.entry.js +1 -0
  316. package/pn-market-web-components/{p-4f67721e.system.entry.js → p-9f95b3c9.system.entry.js} +1 -1
  317. package/pn-market-web-components/{p-0cacf9fb.js → p-a1a58fe4.js} +1 -1
  318. package/pn-market-web-components/p-a3b8ec51.system.entry.js +1 -0
  319. package/pn-market-web-components/p-a5faec68.system.js +2 -0
  320. package/pn-market-web-components/p-a61101e6.entry.js +1 -0
  321. package/pn-market-web-components/p-a781c8dd.entry.js +1 -0
  322. package/pn-market-web-components/p-a799fee1.entry.js +1 -0
  323. package/pn-market-web-components/{p-1610d018.system.entry.js → p-ab5fdc81.system.entry.js} +1 -1
  324. package/pn-market-web-components/{p-2718b89a.system.entry.js → p-abfed655.system.entry.js} +1 -1
  325. package/pn-market-web-components/p-ad1f57dc.entry.js +1 -0
  326. package/pn-market-web-components/p-b0102ff6.entry.js +1 -0
  327. package/pn-market-web-components/{p-625fb7fb.system.entry.js → p-b890f3f9.system.entry.js} +1 -1
  328. package/pn-market-web-components/p-beefd9f7.entry.js +1 -0
  329. package/pn-market-web-components/p-bfe239ca.js +1 -1
  330. package/pn-market-web-components/p-c229035c.entry.js +1 -0
  331. package/pn-market-web-components/{p-84699999.js → p-c5727e83.js} +1 -1
  332. package/pn-market-web-components/{p-447ef543.system.entry.js → p-c576ac3e.system.entry.js} +1 -1
  333. package/pn-market-web-components/p-c5bb2237.system.entry.js +1 -0
  334. package/pn-market-web-components/p-c7e8ab14.entry.js +1 -0
  335. package/pn-market-web-components/{p-af415c1a.system.entry.js → p-ca1f0abc.system.entry.js} +1 -1
  336. package/pn-market-web-components/p-ccf891fc.entry.js +16 -0
  337. package/pn-market-web-components/p-cd6b402e.system.entry.js +1 -0
  338. package/pn-market-web-components/p-ced9727b.system.js +1 -1
  339. package/pn-market-web-components/p-d295ef71.system.js +1 -0
  340. package/pn-market-web-components/{p-825b8fb8.system.js → p-d34c9be2.system.js} +1 -1
  341. package/pn-market-web-components/p-d5ae9797.entry.js +1 -0
  342. package/pn-market-web-components/p-d70e685c.entry.js +1 -0
  343. package/pn-market-web-components/p-d9dec5b8.entry.js +1 -0
  344. package/pn-market-web-components/p-dbd7837e.entry.js +1 -0
  345. package/pn-market-web-components/p-dc598ef8.entry.js +1 -0
  346. package/pn-market-web-components/p-e0e45eb0.system.entry.js +1 -0
  347. package/pn-market-web-components/p-e1513762.entry.js +1 -0
  348. package/pn-market-web-components/p-e4754d3b.system.entry.js +1 -0
  349. package/pn-market-web-components/{p-36a1b8e1.system.entry.js → p-e4961116.system.entry.js} +1 -1
  350. package/pn-market-web-components/p-e4fbd06c.entry.js +1 -0
  351. package/pn-market-web-components/{p-93cecc43.system.entry.js → p-e737c51d.system.entry.js} +1 -1
  352. package/pn-market-web-components/{p-86f06e26.js → p-ecaad0c1.js} +1 -1
  353. package/pn-market-web-components/p-ed5e91eb.system.entry.js +1 -0
  354. package/pn-market-web-components/{p-e6fa11ad.system.entry.js → p-ef721555.system.entry.js} +1 -1
  355. package/pn-market-web-components/{p-c4254e9e.js → p-f04afb39.js} +1 -1
  356. package/pn-market-web-components/{p-37017f68.system.js → p-f4a6d005.system.js} +1 -1
  357. package/pn-market-web-components/{p-1151bf60.system.entry.js → p-f7cb2ef9.system.entry.js} +1 -1
  358. package/pn-market-web-components/{p-e66a8bb8.system.entry.js → p-f9725e57.system.entry.js} +1 -1
  359. package/pn-market-web-components/{p-c7d886d7.system.entry.js → p-fdec849a.system.entry.js} +2 -2
  360. package/pn-market-web-components/p-ff975b67.entry.js +1 -0
  361. package/pn-market-web-components/{p-b88337dd.system.entry.js → p-ffe18938.system.entry.js} +1 -1
  362. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  363. package/pn-market-web-components/pn-market-web-components.js +2 -1
  364. package/types/components.d.ts +53 -21
  365. package/types/stencil-public-runtime.d.ts +79 -7
  366. package/umd/pn-marketweb-init.js +1 -1
  367. package/umd/pn-marketweb-salesforce.js +2 -2
  368. package/esm-es5/index-5397620b.js +0 -1
  369. package/pn-market-web-components/p-022d9a78.entry.js +0 -1
  370. package/pn-market-web-components/p-0796f9b2.entry.js +0 -1
  371. package/pn-market-web-components/p-08411f5e.entry.js +0 -1
  372. package/pn-market-web-components/p-0fce4494.entry.js +0 -1
  373. package/pn-market-web-components/p-15112837.entry.js +0 -1
  374. package/pn-market-web-components/p-16c4bc50.entry.js +0 -1
  375. package/pn-market-web-components/p-17c4004f.entry.js +0 -1
  376. package/pn-market-web-components/p-227e1d46.entry.js +0 -1
  377. package/pn-market-web-components/p-249964b5.entry.js +0 -1
  378. package/pn-market-web-components/p-2878af00.system.entry.js +0 -1
  379. package/pn-market-web-components/p-2a23d908.entry.js +0 -1
  380. package/pn-market-web-components/p-2a598ee8.entry.js +0 -1
  381. package/pn-market-web-components/p-2da8e5e8.system.entry.js +0 -1
  382. package/pn-market-web-components/p-332e9005.entry.js +0 -1
  383. package/pn-market-web-components/p-35af1c4a.entry.js +0 -1
  384. package/pn-market-web-components/p-35fcd76c.system.entry.js +0 -1
  385. package/pn-market-web-components/p-36654f2a.system.js +0 -1
  386. package/pn-market-web-components/p-381b3ec0.entry.js +0 -1
  387. package/pn-market-web-components/p-3ae38e63.entry.js +0 -1
  388. package/pn-market-web-components/p-3c0d63fb.system.entry.js +0 -1
  389. package/pn-market-web-components/p-4bef1bf3.entry.js +0 -1
  390. package/pn-market-web-components/p-4efe43e9.entry.js +0 -1
  391. package/pn-market-web-components/p-5117ac1f.entry.js +0 -1
  392. package/pn-market-web-components/p-58e8d7d5.js +0 -1
  393. package/pn-market-web-components/p-5b05ceb5.system.entry.js +0 -1
  394. package/pn-market-web-components/p-61dbe832.entry.js +0 -1
  395. package/pn-market-web-components/p-67380aa4.entry.js +0 -1
  396. package/pn-market-web-components/p-67887512.system.js +0 -1
  397. package/pn-market-web-components/p-715d1ef7.entry.js +0 -1
  398. package/pn-market-web-components/p-736e5b84.system.entry.js +0 -1
  399. package/pn-market-web-components/p-77557da8.entry.js +0 -1
  400. package/pn-market-web-components/p-7ce41d14.entry.js +0 -1
  401. package/pn-market-web-components/p-7fd8b012.entry.js +0 -1
  402. package/pn-market-web-components/p-81426cd9.entry.js +0 -1
  403. package/pn-market-web-components/p-81773857.entry.js +0 -1
  404. package/pn-market-web-components/p-81d764a0.entry.js +0 -1
  405. package/pn-market-web-components/p-88185835.entry.js +0 -1
  406. package/pn-market-web-components/p-885bc8d7.system.entry.js +0 -1
  407. package/pn-market-web-components/p-8db654e0.system.entry.js +0 -1
  408. package/pn-market-web-components/p-8e146205.entry.js +0 -1
  409. package/pn-market-web-components/p-8e38c337.entry.js +0 -1
  410. package/pn-market-web-components/p-8e4d292f.entry.js +0 -1
  411. package/pn-market-web-components/p-8fe91339.entry.js +0 -1
  412. package/pn-market-web-components/p-9344cd23.js +0 -1
  413. package/pn-market-web-components/p-996d8a6a.entry.js +0 -1
  414. package/pn-market-web-components/p-a247058b.system.entry.js +0 -1
  415. package/pn-market-web-components/p-a27836fc.entry.js +0 -1
  416. package/pn-market-web-components/p-a7bb94a0.entry.js +0 -1
  417. package/pn-market-web-components/p-a921d3fd.system.entry.js +0 -1
  418. package/pn-market-web-components/p-aab2e28f.entry.js +0 -1
  419. package/pn-market-web-components/p-ac0e3c22.system.entry.js +0 -1
  420. package/pn-market-web-components/p-b60a151b.entry.js +0 -16
  421. package/pn-market-web-components/p-bb626ab4.js +0 -1
  422. package/pn-market-web-components/p-bd22aaac.entry.js +0 -1
  423. package/pn-market-web-components/p-c714a790.entry.js +0 -1
  424. package/pn-market-web-components/p-d0155ddf.entry.js +0 -1
  425. package/pn-market-web-components/p-d57f4246.system.entry.js +0 -1
  426. package/pn-market-web-components/p-d7e3d918.entry.js +0 -1
  427. package/pn-market-web-components/p-e32dc098.entry.js +0 -1
  428. package/pn-market-web-components/p-e4a4e68f.system.entry.js +0 -1
  429. package/pn-market-web-components/p-e9576f26.entry.js +0 -1
  430. package/pn-market-web-components/p-e9fe5c54.entry.js +0 -1
  431. package/pn-market-web-components/p-f774e2cc.entry.js +0 -1
  432. package/pn-market-web-components/p-fc974bca.entry.js +0 -1
  433. package/pn-market-web-components/p-fd4bb638.entry.js +0 -1
  434. package/pn-market-web-components/p-fea72975.entry.js +0 -1
  435. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/LICENSE.md +0 -27
  436. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/bin/stencil +0 -57
  437. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/config-flags.d.ts +0 -102
  438. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/index.cjs +0 -2325
  439. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/index.d.ts +0 -16
  440. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/index.js +0 -2299
  441. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/package.json +0 -14
  442. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.d.ts +0 -24
  443. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.dom.d.ts +0 -17791
  444. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.dom.iterable.d.ts +0 -323
  445. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.collection.d.ts +0 -89
  446. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.core.d.ts +0 -559
  447. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.d.ts +0 -30
  448. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.generator.d.ts +0 -79
  449. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.iterable.d.ts +0 -497
  450. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.promise.d.ts +0 -78
  451. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.proxy.d.ts +0 -41
  452. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.reflect.d.ts +0 -123
  453. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.symbol.d.ts +0 -48
  454. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.symbol.wellknown.d.ts +0 -324
  455. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2016.array.include.d.ts +0 -118
  456. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2016.d.ts +0 -22
  457. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2016.full.d.ts +0 -25
  458. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.d.ts +0 -26
  459. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.full.d.ts +0 -25
  460. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.intl.d.ts +0 -32
  461. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.object.d.ts +0 -51
  462. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.sharedmemory.d.ts +0 -137
  463. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.string.d.ts +0 -47
  464. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.typedarrays.d.ts +0 -55
  465. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.asyncgenerator.d.ts +0 -79
  466. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.asynciterable.d.ts +0 -45
  467. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.d.ts +0 -26
  468. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.full.d.ts +0 -25
  469. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.intl.d.ts +0 -73
  470. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.promise.d.ts +0 -32
  471. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.regexp.d.ts +0 -39
  472. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.array.d.ts +0 -85
  473. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.d.ts +0 -25
  474. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.full.d.ts +0 -25
  475. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.object.d.ts +0 -35
  476. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.string.d.ts +0 -39
  477. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.symbol.d.ts +0 -26
  478. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.bigint.d.ts +0 -728
  479. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.d.ts +0 -27
  480. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.full.d.ts +0 -25
  481. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.intl.d.ts +0 -368
  482. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.promise.d.ts +0 -49
  483. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.sharedmemory.d.ts +0 -99
  484. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.string.d.ts +0 -30
  485. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.symbol.wellknown.d.ts +0 -39
  486. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.d.ts +0 -25
  487. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.full.d.ts +0 -25
  488. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.intl.d.ts +0 -44
  489. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.promise.d.ts +0 -50
  490. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.string.d.ts +0 -35
  491. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.weakref.d.ts +0 -75
  492. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es5.d.ts +0 -4495
  493. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es6.d.ts +0 -25
  494. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.d.ts +0 -22
  495. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.full.d.ts +0 -25
  496. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.intl.d.ts +0 -23
  497. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.promise.d.ts +0 -43
  498. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.string.d.ts +0 -35
  499. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.weakref.d.ts +0 -75
  500. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.scripthost.d.ts +0 -327
  501. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.webworker.d.ts +0 -5733
  502. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.webworker.importscripts.d.ts +0 -26
  503. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.webworker.iterable.d.ts +0 -160
  504. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/package.json +0 -8
  505. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/stencil.d.ts +0 -95
  506. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/stencil.js +0 -67330
  507. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/stencil.min.js +0 -4
  508. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dependencies.json +0 -109
  509. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/app-error.d.ts +0 -18
  510. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/events.d.ts +0 -6
  511. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-components.d.ts +0 -1
  512. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-external-styles.d.ts +0 -1
  513. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-images.d.ts +0 -1
  514. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-inline-styles.d.ts +0 -1
  515. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-util.d.ts +0 -9
  516. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-window.d.ts +0 -10
  517. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/index.d.ts +0 -6
  518. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/index.js +0 -808
  519. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/logger.d.ts +0 -5
  520. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/package.json +0 -8
  521. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/progress.d.ts +0 -3
  522. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/status.d.ts +0 -4
  523. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/test/hmr-util.spec.d.ts +0 -1
  524. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/test/status.spec.d.ts +0 -1
  525. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/connector.html +0 -6
  526. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/index.d.ts +0 -3
  527. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/index.js +0 -264
  528. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/open-in-editor-api.js +0 -1
  529. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/package.json +0 -8
  530. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/server-process.js +0 -1765
  531. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/server-worker-thread.js +0 -39
  532. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/static/favicon.ico +0 -0
  533. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/templates/directory-index.html +0 -132
  534. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/templates/initial-load.html +0 -160
  535. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/visualstudio.vbs +0 -82
  536. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/ws.js +0 -1
  537. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/xdg-open +0 -1066
  538. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-data/index.cjs +0 -92
  539. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-data/index.d.ts +0 -4
  540. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-data/index.js +0 -88
  541. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-data/package.json +0 -15
  542. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/css-shim.js +0 -4
  543. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/dom.js +0 -73
  544. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/index.js +0 -3064
  545. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/package.json +0 -8
  546. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/patch-browser.js +0 -124
  547. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/patch-esm.js +0 -23
  548. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/core-js.js +0 -11
  549. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/css-shim.js +0 -1
  550. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/dom.js +0 -79
  551. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/es5-html-element.js +0 -1
  552. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/index.js +0 -34
  553. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/system.js +0 -6
  554. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/shadow-css.js +0 -387
  555. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/index.js +0 -1132
  556. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/package.json +0 -7
  557. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/runner.d.ts +0 -217
  558. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/runner.js +0 -777
  559. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/shadow-css.js +0 -143
  560. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/index.d.ts +0 -4
  561. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/index.js +0 -2
  562. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/package.json +0 -9
  563. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-core/index.cjs +0 -1
  564. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-core/index.d.ts +0 -52
  565. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-core/index.js +0 -16
  566. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-ext-modules.d.ts +0 -41
  567. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-private.d.ts +0 -2293
  568. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-compiler.d.ts +0 -2293
  569. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-docs.d.ts +0 -116
  570. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-runtime.d.ts +0 -1565
  571. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/index.js +0 -1093
  572. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/package.json +0 -7
  573. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/shadow-css.js +0 -143
  574. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.cjs +0 -4794
  575. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.d.ts +0 -1004
  576. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.js +0 -4758
  577. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/package.json +0 -15
  578. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/package.json +0 -200
  579. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/readme.md +0 -105
  580. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/assets/favicon.ico +0 -0
  581. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/assets/logo.png +0 -0
  582. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/app.css +0 -1
  583. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/app.esm.js +0 -1
  584. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/app.js +0 -33
  585. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/index.esm.js +0 -0
  586. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-081b0641.js +0 -1
  587. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-227a1e18.entry.js +0 -1
  588. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-2c298727.entry.js +0 -1
  589. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-5479268c.entry.js +0 -1
  590. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-573ec8a4.entry.js +0 -1
  591. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-6ba08604.entry.js +0 -1
  592. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-6bc63295.entry.js +0 -1
  593. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-7a3759fd.entry.js +0 -1
  594. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-7b4e3ba7.js +0 -1
  595. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-988eb362.css +0 -1
  596. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-9b6a9315.js +0 -1
  597. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-b4cc611c.entry.js +0 -1
  598. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-d1bf53f5.entry.js +0 -1
  599. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-e2efe0df.js +0 -1
  600. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-e8ca6d97.entry.js +0 -1
  601. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-ec2f13e0.entry.js +0 -1
  602. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-f0b99977.entry.js +0 -1
  603. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-f4745c2f.entry.js +0 -1
  604. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-fbbae598.js +0 -1
  605. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/host.config.json +0 -15
  606. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/index.html +0 -1
  607. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/manifest.json +0 -13
  608. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/connector.js +0 -2
  609. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/index.js +0 -661
  610. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/local-connector.js +0 -2
  611. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/package.json +0 -15
  612. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/pixel-match.js +0 -2673
  613. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/autoprefixer.js +0 -8
  614. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/glob.js +0 -1
  615. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/graceful-fs.js +0 -1
  616. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/index.d.ts +0 -18
  617. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/index.js +0 -6135
  618. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/node-fetch.js +0 -1
  619. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/package.json +0 -8
  620. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/prompts.js +0 -1
  621. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/worker.js +0 -52
  622. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/index.d.ts +0 -12
  623. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/index.js +0 -4140
  624. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-config.d.ts +0 -16
  625. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-environment.d.ts +0 -15
  626. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-preprocessor.d.ts +0 -59
  627. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-runner.d.ts +0 -10
  628. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-screenshot.d.ts +0 -2
  629. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-serializer.d.ts +0 -5
  630. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-setup-test-framework.d.ts +0 -1
  631. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/test/jest-config.spec.d.ts +0 -1
  632. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/test/jest-preprocessor.spec.d.ts +0 -1
  633. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/test/jest-runner.spec.d.ts +0 -1
  634. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/test/jest-serializer.spec.d.ts +0 -1
  635. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest-environment.js +0 -3
  636. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest-preprocessor.js +0 -3
  637. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest-preset.js +0 -37
  638. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest-runner.js +0 -3
  639. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest-setuptestframework.js +0 -3
  640. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/attributes.d.ts +0 -14
  641. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/class-list.d.ts +0 -12
  642. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/events.d.ts +0 -21
  643. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/html.d.ts +0 -12
  644. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/index.d.ts +0 -23
  645. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/screenshot.d.ts +0 -5
  646. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/text.d.ts +0 -4
  647. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/mock-fetch.d.ts +0 -11
  648. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/mocks.d.ts +0 -55
  649. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/package.json +0 -8
  650. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/index.d.ts +0 -2
  651. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-browser.d.ts +0 -6
  652. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-declarations.d.ts +0 -429
  653. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-element.d.ts +0 -67
  654. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-emulate.d.ts +0 -2
  655. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-events.d.ts +0 -21
  656. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-page.d.ts +0 -2
  657. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-screenshot.d.ts +0 -4
  658. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/reset-build-conditionals.d.ts +0 -2
  659. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/spec-page.d.ts +0 -2
  660. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/test/testing-utils.spec.d.ts +0 -1
  661. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/test-transpile.d.ts +0 -2
  662. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/testing-logger.d.ts +0 -25
  663. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/testing-sys.d.ts +0 -6
  664. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/testing-utils.d.ts +0 -78
  665. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/testing.d.ts +0 -2
@@ -1,4495 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation. All rights reserved.
3
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
- this file except in compliance with the License. You may obtain a copy of the
5
- License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
11
-
12
- See the Apache Version 2.0 License for specific language governing permissions
13
- and limitations under the License.
14
- ***************************************************************************** */
15
-
16
-
17
-
18
- /// <reference no-default-lib="true"/>
19
-
20
-
21
- /////////////////////////////
22
- /// ECMAScript APIs
23
- /////////////////////////////
24
-
25
- declare var NaN: number;
26
- declare var Infinity: number;
27
-
28
- /**
29
- * Evaluates JavaScript code and executes it.
30
- * @param x A String value that contains valid JavaScript code.
31
- */
32
- declare function eval(x: string): any;
33
-
34
- /**
35
- * Converts a string to an integer.
36
- * @param string A string to convert into a number.
37
- * @param radix A value between 2 and 36 that specifies the base of the number in `string`.
38
- * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
39
- * All other strings are considered decimal.
40
- */
41
- declare function parseInt(string: string, radix?: number): number;
42
-
43
- /**
44
- * Converts a string to a floating-point number.
45
- * @param string A string that contains a floating-point number.
46
- */
47
- declare function parseFloat(string: string): number;
48
-
49
- /**
50
- * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).
51
- * @param number A numeric value.
52
- */
53
- declare function isNaN(number: number): boolean;
54
-
55
- /**
56
- * Determines whether a supplied number is finite.
57
- * @param number Any numeric value.
58
- */
59
- declare function isFinite(number: number): boolean;
60
-
61
- /**
62
- * Gets the unencoded version of an encoded Uniform Resource Identifier (URI).
63
- * @param encodedURI A value representing an encoded URI.
64
- */
65
- declare function decodeURI(encodedURI: string): string;
66
-
67
- /**
68
- * Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).
69
- * @param encodedURIComponent A value representing an encoded URI component.
70
- */
71
- declare function decodeURIComponent(encodedURIComponent: string): string;
72
-
73
- /**
74
- * Encodes a text string as a valid Uniform Resource Identifier (URI)
75
- * @param uri A value representing an encoded URI.
76
- */
77
- declare function encodeURI(uri: string): string;
78
-
79
- /**
80
- * Encodes a text string as a valid component of a Uniform Resource Identifier (URI).
81
- * @param uriComponent A value representing an encoded URI component.
82
- */
83
- declare function encodeURIComponent(uriComponent: string | number | boolean): string;
84
-
85
- /**
86
- * Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.
87
- * @deprecated A legacy feature for browser compatibility
88
- * @param string A string value
89
- */
90
- declare function escape(string: string): string;
91
-
92
- /**
93
- * Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents.
94
- * @deprecated A legacy feature for browser compatibility
95
- * @param string A string value
96
- */
97
- declare function unescape(string: string): string;
98
-
99
- interface Symbol {
100
- /** Returns a string representation of an object. */
101
- toString(): string;
102
-
103
- /** Returns the primitive value of the specified object. */
104
- valueOf(): symbol;
105
- }
106
-
107
- declare type PropertyKey = string | number | symbol;
108
-
109
- interface PropertyDescriptor {
110
- configurable?: boolean;
111
- enumerable?: boolean;
112
- value?: any;
113
- writable?: boolean;
114
- get?(): any;
115
- set?(v: any): void;
116
- }
117
-
118
- interface PropertyDescriptorMap {
119
- [s: string]: PropertyDescriptor;
120
- }
121
-
122
- interface Object {
123
- /** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */
124
- constructor: Function;
125
-
126
- /** Returns a string representation of an object. */
127
- toString(): string;
128
-
129
- /** Returns a date converted to a string using the current locale. */
130
- toLocaleString(): string;
131
-
132
- /** Returns the primitive value of the specified object. */
133
- valueOf(): Object;
134
-
135
- /**
136
- * Determines whether an object has a property with the specified name.
137
- * @param v A property name.
138
- */
139
- hasOwnProperty(v: PropertyKey): boolean;
140
-
141
- /**
142
- * Determines whether an object exists in another object's prototype chain.
143
- * @param v Another object whose prototype chain is to be checked.
144
- */
145
- isPrototypeOf(v: Object): boolean;
146
-
147
- /**
148
- * Determines whether a specified property is enumerable.
149
- * @param v A property name.
150
- */
151
- propertyIsEnumerable(v: PropertyKey): boolean;
152
- }
153
-
154
- interface ObjectConstructor {
155
- new(value?: any): Object;
156
- (): any;
157
- (value: any): any;
158
-
159
- /** A reference to the prototype for a class of objects. */
160
- readonly prototype: Object;
161
-
162
- /**
163
- * Returns the prototype of an object.
164
- * @param o The object that references the prototype.
165
- */
166
- getPrototypeOf(o: any): any;
167
-
168
- /**
169
- * Gets the own property descriptor of the specified object.
170
- * An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
171
- * @param o Object that contains the property.
172
- * @param p Name of the property.
173
- */
174
- getOwnPropertyDescriptor(o: any, p: PropertyKey): PropertyDescriptor | undefined;
175
-
176
- /**
177
- * Returns the names of the own properties of an object. The own properties of an object are those that are defined directly
178
- * on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.
179
- * @param o Object that contains the own properties.
180
- */
181
- getOwnPropertyNames(o: any): string[];
182
-
183
- /**
184
- * Creates an object that has the specified prototype or that has null prototype.
185
- * @param o Object to use as a prototype. May be null.
186
- */
187
- create(o: object | null): any;
188
-
189
- /**
190
- * Creates an object that has the specified prototype, and that optionally contains specified properties.
191
- * @param o Object to use as a prototype. May be null
192
- * @param properties JavaScript object that contains one or more property descriptors.
193
- */
194
- create(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
195
-
196
- /**
197
- * Adds a property to an object, or modifies attributes of an existing property.
198
- * @param o Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object.
199
- * @param p The property name.
200
- * @param attributes Descriptor for the property. It can be for a data property or an accessor property.
201
- */
202
- defineProperty<T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): T;
203
-
204
- /**
205
- * Adds one or more properties to an object, and/or modifies attributes of existing properties.
206
- * @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.
207
- * @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.
208
- */
209
- defineProperties<T>(o: T, properties: PropertyDescriptorMap & ThisType<any>): T;
210
-
211
- /**
212
- * Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
213
- * @param o Object on which to lock the attributes.
214
- */
215
- seal<T>(o: T): T;
216
-
217
- /**
218
- * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
219
- * @param a Object on which to lock the attributes.
220
- */
221
- freeze<T>(a: T[]): readonly T[];
222
-
223
- /**
224
- * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
225
- * @param f Object on which to lock the attributes.
226
- */
227
- freeze<T extends Function>(f: T): T;
228
-
229
- /**
230
- * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
231
- * @param o Object on which to lock the attributes.
232
- */
233
- freeze<T>(o: T): Readonly<T>;
234
-
235
- /**
236
- * Prevents the addition of new properties to an object.
237
- * @param o Object to make non-extensible.
238
- */
239
- preventExtensions<T>(o: T): T;
240
-
241
- /**
242
- * Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
243
- * @param o Object to test.
244
- */
245
- isSealed(o: any): boolean;
246
-
247
- /**
248
- * Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
249
- * @param o Object to test.
250
- */
251
- isFrozen(o: any): boolean;
252
-
253
- /**
254
- * Returns a value that indicates whether new properties can be added to an object.
255
- * @param o Object to test.
256
- */
257
- isExtensible(o: any): boolean;
258
-
259
- /**
260
- * Returns the names of the enumerable string properties and methods of an object.
261
- * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
262
- */
263
- keys(o: object): string[];
264
- }
265
-
266
- /**
267
- * Provides functionality common to all JavaScript objects.
268
- */
269
- declare var Object: ObjectConstructor;
270
-
271
- /**
272
- * Creates a new function.
273
- */
274
- interface Function {
275
- /**
276
- * Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.
277
- * @param thisArg The object to be used as the this object.
278
- * @param argArray A set of arguments to be passed to the function.
279
- */
280
- apply(this: Function, thisArg: any, argArray?: any): any;
281
-
282
- /**
283
- * Calls a method of an object, substituting another object for the current object.
284
- * @param thisArg The object to be used as the current object.
285
- * @param argArray A list of arguments to be passed to the method.
286
- */
287
- call(this: Function, thisArg: any, ...argArray: any[]): any;
288
-
289
- /**
290
- * For a given function, creates a bound function that has the same body as the original function.
291
- * The this object of the bound function is associated with the specified object, and has the specified initial parameters.
292
- * @param thisArg An object to which the this keyword can refer inside the new function.
293
- * @param argArray A list of arguments to be passed to the new function.
294
- */
295
- bind(this: Function, thisArg: any, ...argArray: any[]): any;
296
-
297
- /** Returns a string representation of a function. */
298
- toString(): string;
299
-
300
- prototype: any;
301
- readonly length: number;
302
-
303
- // Non-standard extensions
304
- arguments: any;
305
- caller: Function;
306
- }
307
-
308
- interface FunctionConstructor {
309
- /**
310
- * Creates a new function.
311
- * @param args A list of arguments the function accepts.
312
- */
313
- new(...args: string[]): Function;
314
- (...args: string[]): Function;
315
- readonly prototype: Function;
316
- }
317
-
318
- declare var Function: FunctionConstructor;
319
-
320
- /**
321
- * Extracts the type of the 'this' parameter of a function type, or 'unknown' if the function type has no 'this' parameter.
322
- */
323
- type ThisParameterType<T> = T extends (this: infer U, ...args: any[]) => any ? U : unknown;
324
-
325
- /**
326
- * Removes the 'this' parameter from a function type.
327
- */
328
- type OmitThisParameter<T> = unknown extends ThisParameterType<T> ? T : T extends (...args: infer A) => infer R ? (...args: A) => R : T;
329
-
330
- interface CallableFunction extends Function {
331
- /**
332
- * Calls the function with the specified object as the this value and the elements of specified array as the arguments.
333
- * @param thisArg The object to be used as the this object.
334
- * @param args An array of argument values to be passed to the function.
335
- */
336
- apply<T, R>(this: (this: T) => R, thisArg: T): R;
337
- apply<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, args: A): R;
338
-
339
- /**
340
- * Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
341
- * @param thisArg The object to be used as the this object.
342
- * @param args Argument values to be passed to the function.
343
- */
344
- call<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, ...args: A): R;
345
-
346
- /**
347
- * For a given function, creates a bound function that has the same body as the original function.
348
- * The this object of the bound function is associated with the specified object, and has the specified initial parameters.
349
- * @param thisArg The object to be used as the this object.
350
- * @param args Arguments to bind to the parameters of the function.
351
- */
352
- bind<T>(this: T, thisArg: ThisParameterType<T>): OmitThisParameter<T>;
353
- bind<T, A0, A extends any[], R>(this: (this: T, arg0: A0, ...args: A) => R, thisArg: T, arg0: A0): (...args: A) => R;
354
- bind<T, A0, A1, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1): (...args: A) => R;
355
- bind<T, A0, A1, A2, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2): (...args: A) => R;
356
- bind<T, A0, A1, A2, A3, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3): (...args: A) => R;
357
- bind<T, AX, R>(this: (this: T, ...args: AX[]) => R, thisArg: T, ...args: AX[]): (...args: AX[]) => R;
358
- }
359
-
360
- interface NewableFunction extends Function {
361
- /**
362
- * Calls the function with the specified object as the this value and the elements of specified array as the arguments.
363
- * @param thisArg The object to be used as the this object.
364
- * @param args An array of argument values to be passed to the function.
365
- */
366
- apply<T>(this: new () => T, thisArg: T): void;
367
- apply<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, args: A): void;
368
-
369
- /**
370
- * Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
371
- * @param thisArg The object to be used as the this object.
372
- * @param args Argument values to be passed to the function.
373
- */
374
- call<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, ...args: A): void;
375
-
376
- /**
377
- * For a given function, creates a bound function that has the same body as the original function.
378
- * The this object of the bound function is associated with the specified object, and has the specified initial parameters.
379
- * @param thisArg The object to be used as the this object.
380
- * @param args Arguments to bind to the parameters of the function.
381
- */
382
- bind<T>(this: T, thisArg: any): T;
383
- bind<A0, A extends any[], R>(this: new (arg0: A0, ...args: A) => R, thisArg: any, arg0: A0): new (...args: A) => R;
384
- bind<A0, A1, A extends any[], R>(this: new (arg0: A0, arg1: A1, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1): new (...args: A) => R;
385
- bind<A0, A1, A2, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2): new (...args: A) => R;
386
- bind<A0, A1, A2, A3, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2, arg3: A3): new (...args: A) => R;
387
- bind<AX, R>(this: new (...args: AX[]) => R, thisArg: any, ...args: AX[]): new (...args: AX[]) => R;
388
- }
389
-
390
- interface IArguments {
391
- [index: number]: any;
392
- length: number;
393
- callee: Function;
394
- }
395
-
396
- interface String {
397
- /** Returns a string representation of a string. */
398
- toString(): string;
399
-
400
- /**
401
- * Returns the character at the specified index.
402
- * @param pos The zero-based index of the desired character.
403
- */
404
- charAt(pos: number): string;
405
-
406
- /**
407
- * Returns the Unicode value of the character at the specified location.
408
- * @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.
409
- */
410
- charCodeAt(index: number): number;
411
-
412
- /**
413
- * Returns a string that contains the concatenation of two or more strings.
414
- * @param strings The strings to append to the end of the string.
415
- */
416
- concat(...strings: string[]): string;
417
-
418
- /**
419
- * Returns the position of the first occurrence of a substring.
420
- * @param searchString The substring to search for in the string
421
- * @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
422
- */
423
- indexOf(searchString: string, position?: number): number;
424
-
425
- /**
426
- * Returns the last occurrence of a substring in the string.
427
- * @param searchString The substring to search for.
428
- * @param position The index at which to begin searching. If omitted, the search begins at the end of the string.
429
- */
430
- lastIndexOf(searchString: string, position?: number): number;
431
-
432
- /**
433
- * Determines whether two strings are equivalent in the current locale.
434
- * @param that String to compare to target string
435
- */
436
- localeCompare(that: string): number;
437
-
438
- /**
439
- * Matches a string with a regular expression, and returns an array containing the results of that search.
440
- * @param regexp A variable name or string literal containing the regular expression pattern and flags.
441
- */
442
- match(regexp: string | RegExp): RegExpMatchArray | null;
443
-
444
- /**
445
- * Replaces text in a string, using a regular expression or search string.
446
- * @param searchValue A string to search for.
447
- * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
448
- */
449
- replace(searchValue: string | RegExp, replaceValue: string): string;
450
-
451
- /**
452
- * Replaces text in a string, using a regular expression or search string.
453
- * @param searchValue A string to search for.
454
- * @param replacer A function that returns the replacement text.
455
- */
456
- replace(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
457
-
458
- /**
459
- * Finds the first substring match in a regular expression search.
460
- * @param regexp The regular expression pattern and applicable flags.
461
- */
462
- search(regexp: string | RegExp): number;
463
-
464
- /**
465
- * Returns a section of a string.
466
- * @param start The index to the beginning of the specified portion of stringObj.
467
- * @param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.
468
- * If this value is not specified, the substring continues to the end of stringObj.
469
- */
470
- slice(start?: number, end?: number): string;
471
-
472
- /**
473
- * Split a string into substrings using the specified separator and return them as an array.
474
- * @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.
475
- * @param limit A value used to limit the number of elements returned in the array.
476
- */
477
- split(separator: string | RegExp, limit?: number): string[];
478
-
479
- /**
480
- * Returns the substring at the specified location within a String object.
481
- * @param start The zero-based index number indicating the beginning of the substring.
482
- * @param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.
483
- * If end is omitted, the characters from start through the end of the original string are returned.
484
- */
485
- substring(start: number, end?: number): string;
486
-
487
- /** Converts all the alphabetic characters in a string to lowercase. */
488
- toLowerCase(): string;
489
-
490
- /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
491
- toLocaleLowerCase(locales?: string | string[]): string;
492
-
493
- /** Converts all the alphabetic characters in a string to uppercase. */
494
- toUpperCase(): string;
495
-
496
- /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */
497
- toLocaleUpperCase(locales?: string | string[]): string;
498
-
499
- /** Removes the leading and trailing white space and line terminator characters from a string. */
500
- trim(): string;
501
-
502
- /** Returns the length of a String object. */
503
- readonly length: number;
504
-
505
- // IE extensions
506
- /**
507
- * Gets a substring beginning at the specified location and having the specified length.
508
- * @deprecated A legacy feature for browser compatibility
509
- * @param from The starting position of the desired substring. The index of the first character in the string is zero.
510
- * @param length The number of characters to include in the returned substring.
511
- */
512
- substr(from: number, length?: number): string;
513
-
514
- /** Returns the primitive value of the specified object. */
515
- valueOf(): string;
516
-
517
- readonly [index: number]: string;
518
- }
519
-
520
- interface StringConstructor {
521
- new(value?: any): String;
522
- (value?: any): string;
523
- readonly prototype: String;
524
- fromCharCode(...codes: number[]): string;
525
- }
526
-
527
- /**
528
- * Allows manipulation and formatting of text strings and determination and location of substrings within strings.
529
- */
530
- declare var String: StringConstructor;
531
-
532
- interface Boolean {
533
- /** Returns the primitive value of the specified object. */
534
- valueOf(): boolean;
535
- }
536
-
537
- interface BooleanConstructor {
538
- new(value?: any): Boolean;
539
- <T>(value?: T): boolean;
540
- readonly prototype: Boolean;
541
- }
542
-
543
- declare var Boolean: BooleanConstructor;
544
-
545
- interface Number {
546
- /**
547
- * Returns a string representation of an object.
548
- * @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.
549
- */
550
- toString(radix?: number): string;
551
-
552
- /**
553
- * Returns a string representing a number in fixed-point notation.
554
- * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
555
- */
556
- toFixed(fractionDigits?: number): string;
557
-
558
- /**
559
- * Returns a string containing a number represented in exponential notation.
560
- * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
561
- */
562
- toExponential(fractionDigits?: number): string;
563
-
564
- /**
565
- * Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
566
- * @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
567
- */
568
- toPrecision(precision?: number): string;
569
-
570
- /** Returns the primitive value of the specified object. */
571
- valueOf(): number;
572
- }
573
-
574
- interface NumberConstructor {
575
- new(value?: any): Number;
576
- (value?: any): number;
577
- readonly prototype: Number;
578
-
579
- /** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */
580
- readonly MAX_VALUE: number;
581
-
582
- /** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */
583
- readonly MIN_VALUE: number;
584
-
585
- /**
586
- * A value that is not a number.
587
- * In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.
588
- */
589
- readonly NaN: number;
590
-
591
- /**
592
- * A value that is less than the largest negative number that can be represented in JavaScript.
593
- * JavaScript displays NEGATIVE_INFINITY values as -infinity.
594
- */
595
- readonly NEGATIVE_INFINITY: number;
596
-
597
- /**
598
- * A value greater than the largest number that can be represented in JavaScript.
599
- * JavaScript displays POSITIVE_INFINITY values as infinity.
600
- */
601
- readonly POSITIVE_INFINITY: number;
602
- }
603
-
604
- /** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */
605
- declare var Number: NumberConstructor;
606
-
607
- interface TemplateStringsArray extends ReadonlyArray<string> {
608
- readonly raw: readonly string[];
609
- }
610
-
611
- /**
612
- * The type of `import.meta`.
613
- *
614
- * If you need to declare that a given property exists on `import.meta`,
615
- * this type may be augmented via interface merging.
616
- */
617
- interface ImportMeta {
618
- }
619
-
620
- /**
621
- * The type for the optional second argument to `import()`.
622
- *
623
- * If your host environment supports additional options, this type may be
624
- * augmented via interface merging.
625
- */
626
- interface ImportCallOptions {
627
- assert?: ImportAssertions;
628
- }
629
-
630
- /**
631
- * The type for the `assert` property of the optional second argument to `import()`.
632
- */
633
- interface ImportAssertions {
634
- [key: string]: string;
635
- }
636
-
637
- interface Math {
638
- /** The mathematical constant e. This is Euler's number, the base of natural logarithms. */
639
- readonly E: number;
640
- /** The natural logarithm of 10. */
641
- readonly LN10: number;
642
- /** The natural logarithm of 2. */
643
- readonly LN2: number;
644
- /** The base-2 logarithm of e. */
645
- readonly LOG2E: number;
646
- /** The base-10 logarithm of e. */
647
- readonly LOG10E: number;
648
- /** Pi. This is the ratio of the circumference of a circle to its diameter. */
649
- readonly PI: number;
650
- /** The square root of 0.5, or, equivalently, one divided by the square root of 2. */
651
- readonly SQRT1_2: number;
652
- /** The square root of 2. */
653
- readonly SQRT2: number;
654
- /**
655
- * Returns the absolute value of a number (the value without regard to whether it is positive or negative).
656
- * For example, the absolute value of -5 is the same as the absolute value of 5.
657
- * @param x A numeric expression for which the absolute value is needed.
658
- */
659
- abs(x: number): number;
660
- /**
661
- * Returns the arc cosine (or inverse cosine) of a number.
662
- * @param x A numeric expression.
663
- */
664
- acos(x: number): number;
665
- /**
666
- * Returns the arcsine of a number.
667
- * @param x A numeric expression.
668
- */
669
- asin(x: number): number;
670
- /**
671
- * Returns the arctangent of a number.
672
- * @param x A numeric expression for which the arctangent is needed.
673
- */
674
- atan(x: number): number;
675
- /**
676
- * Returns the angle (in radians) from the X axis to a point.
677
- * @param y A numeric expression representing the cartesian y-coordinate.
678
- * @param x A numeric expression representing the cartesian x-coordinate.
679
- */
680
- atan2(y: number, x: number): number;
681
- /**
682
- * Returns the smallest integer greater than or equal to its numeric argument.
683
- * @param x A numeric expression.
684
- */
685
- ceil(x: number): number;
686
- /**
687
- * Returns the cosine of a number.
688
- * @param x A numeric expression that contains an angle measured in radians.
689
- */
690
- cos(x: number): number;
691
- /**
692
- * Returns e (the base of natural logarithms) raised to a power.
693
- * @param x A numeric expression representing the power of e.
694
- */
695
- exp(x: number): number;
696
- /**
697
- * Returns the greatest integer less than or equal to its numeric argument.
698
- * @param x A numeric expression.
699
- */
700
- floor(x: number): number;
701
- /**
702
- * Returns the natural logarithm (base e) of a number.
703
- * @param x A numeric expression.
704
- */
705
- log(x: number): number;
706
- /**
707
- * Returns the larger of a set of supplied numeric expressions.
708
- * @param values Numeric expressions to be evaluated.
709
- */
710
- max(...values: number[]): number;
711
- /**
712
- * Returns the smaller of a set of supplied numeric expressions.
713
- * @param values Numeric expressions to be evaluated.
714
- */
715
- min(...values: number[]): number;
716
- /**
717
- * Returns the value of a base expression taken to a specified power.
718
- * @param x The base value of the expression.
719
- * @param y The exponent value of the expression.
720
- */
721
- pow(x: number, y: number): number;
722
- /** Returns a pseudorandom number between 0 and 1. */
723
- random(): number;
724
- /**
725
- * Returns a supplied numeric expression rounded to the nearest integer.
726
- * @param x The value to be rounded to the nearest integer.
727
- */
728
- round(x: number): number;
729
- /**
730
- * Returns the sine of a number.
731
- * @param x A numeric expression that contains an angle measured in radians.
732
- */
733
- sin(x: number): number;
734
- /**
735
- * Returns the square root of a number.
736
- * @param x A numeric expression.
737
- */
738
- sqrt(x: number): number;
739
- /**
740
- * Returns the tangent of a number.
741
- * @param x A numeric expression that contains an angle measured in radians.
742
- */
743
- tan(x: number): number;
744
- }
745
- /** An intrinsic object that provides basic mathematics functionality and constants. */
746
- declare var Math: Math;
747
-
748
- /** Enables basic storage and retrieval of dates and times. */
749
- interface Date {
750
- /** Returns a string representation of a date. The format of the string depends on the locale. */
751
- toString(): string;
752
- /** Returns a date as a string value. */
753
- toDateString(): string;
754
- /** Returns a time as a string value. */
755
- toTimeString(): string;
756
- /** Returns a value as a string value appropriate to the host environment's current locale. */
757
- toLocaleString(): string;
758
- /** Returns a date as a string value appropriate to the host environment's current locale. */
759
- toLocaleDateString(): string;
760
- /** Returns a time as a string value appropriate to the host environment's current locale. */
761
- toLocaleTimeString(): string;
762
- /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
763
- valueOf(): number;
764
- /** Gets the time value in milliseconds. */
765
- getTime(): number;
766
- /** Gets the year, using local time. */
767
- getFullYear(): number;
768
- /** Gets the year using Universal Coordinated Time (UTC). */
769
- getUTCFullYear(): number;
770
- /** Gets the month, using local time. */
771
- getMonth(): number;
772
- /** Gets the month of a Date object using Universal Coordinated Time (UTC). */
773
- getUTCMonth(): number;
774
- /** Gets the day-of-the-month, using local time. */
775
- getDate(): number;
776
- /** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */
777
- getUTCDate(): number;
778
- /** Gets the day of the week, using local time. */
779
- getDay(): number;
780
- /** Gets the day of the week using Universal Coordinated Time (UTC). */
781
- getUTCDay(): number;
782
- /** Gets the hours in a date, using local time. */
783
- getHours(): number;
784
- /** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */
785
- getUTCHours(): number;
786
- /** Gets the minutes of a Date object, using local time. */
787
- getMinutes(): number;
788
- /** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */
789
- getUTCMinutes(): number;
790
- /** Gets the seconds of a Date object, using local time. */
791
- getSeconds(): number;
792
- /** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */
793
- getUTCSeconds(): number;
794
- /** Gets the milliseconds of a Date, using local time. */
795
- getMilliseconds(): number;
796
- /** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */
797
- getUTCMilliseconds(): number;
798
- /** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */
799
- getTimezoneOffset(): number;
800
- /**
801
- * Sets the date and time value in the Date object.
802
- * @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.
803
- */
804
- setTime(time: number): number;
805
- /**
806
- * Sets the milliseconds value in the Date object using local time.
807
- * @param ms A numeric value equal to the millisecond value.
808
- */
809
- setMilliseconds(ms: number): number;
810
- /**
811
- * Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).
812
- * @param ms A numeric value equal to the millisecond value.
813
- */
814
- setUTCMilliseconds(ms: number): number;
815
-
816
- /**
817
- * Sets the seconds value in the Date object using local time.
818
- * @param sec A numeric value equal to the seconds value.
819
- * @param ms A numeric value equal to the milliseconds value.
820
- */
821
- setSeconds(sec: number, ms?: number): number;
822
- /**
823
- * Sets the seconds value in the Date object using Universal Coordinated Time (UTC).
824
- * @param sec A numeric value equal to the seconds value.
825
- * @param ms A numeric value equal to the milliseconds value.
826
- */
827
- setUTCSeconds(sec: number, ms?: number): number;
828
- /**
829
- * Sets the minutes value in the Date object using local time.
830
- * @param min A numeric value equal to the minutes value.
831
- * @param sec A numeric value equal to the seconds value.
832
- * @param ms A numeric value equal to the milliseconds value.
833
- */
834
- setMinutes(min: number, sec?: number, ms?: number): number;
835
- /**
836
- * Sets the minutes value in the Date object using Universal Coordinated Time (UTC).
837
- * @param min A numeric value equal to the minutes value.
838
- * @param sec A numeric value equal to the seconds value.
839
- * @param ms A numeric value equal to the milliseconds value.
840
- */
841
- setUTCMinutes(min: number, sec?: number, ms?: number): number;
842
- /**
843
- * Sets the hour value in the Date object using local time.
844
- * @param hours A numeric value equal to the hours value.
845
- * @param min A numeric value equal to the minutes value.
846
- * @param sec A numeric value equal to the seconds value.
847
- * @param ms A numeric value equal to the milliseconds value.
848
- */
849
- setHours(hours: number, min?: number, sec?: number, ms?: number): number;
850
- /**
851
- * Sets the hours value in the Date object using Universal Coordinated Time (UTC).
852
- * @param hours A numeric value equal to the hours value.
853
- * @param min A numeric value equal to the minutes value.
854
- * @param sec A numeric value equal to the seconds value.
855
- * @param ms A numeric value equal to the milliseconds value.
856
- */
857
- setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;
858
- /**
859
- * Sets the numeric day-of-the-month value of the Date object using local time.
860
- * @param date A numeric value equal to the day of the month.
861
- */
862
- setDate(date: number): number;
863
- /**
864
- * Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).
865
- * @param date A numeric value equal to the day of the month.
866
- */
867
- setUTCDate(date: number): number;
868
- /**
869
- * Sets the month value in the Date object using local time.
870
- * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
871
- * @param date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used.
872
- */
873
- setMonth(month: number, date?: number): number;
874
- /**
875
- * Sets the month value in the Date object using Universal Coordinated Time (UTC).
876
- * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
877
- * @param date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used.
878
- */
879
- setUTCMonth(month: number, date?: number): number;
880
- /**
881
- * Sets the year of the Date object using local time.
882
- * @param year A numeric value for the year.
883
- * @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.
884
- * @param date A numeric value equal for the day of the month.
885
- */
886
- setFullYear(year: number, month?: number, date?: number): number;
887
- /**
888
- * Sets the year value in the Date object using Universal Coordinated Time (UTC).
889
- * @param year A numeric value equal to the year.
890
- * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied.
891
- * @param date A numeric value equal to the day of the month.
892
- */
893
- setUTCFullYear(year: number, month?: number, date?: number): number;
894
- /** Returns a date converted to a string using Universal Coordinated Time (UTC). */
895
- toUTCString(): string;
896
- /** Returns a date as a string value in ISO format. */
897
- toISOString(): string;
898
- /** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */
899
- toJSON(key?: any): string;
900
- }
901
-
902
- interface DateConstructor {
903
- new(): Date;
904
- new(value: number | string): Date;
905
- new(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;
906
- (): string;
907
- readonly prototype: Date;
908
- /**
909
- * Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.
910
- * @param s A date string
911
- */
912
- parse(s: string): number;
913
- /**
914
- * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
915
- * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
916
- * @param month The month as a number between 0 and 11 (January to December).
917
- * @param date The date as a number between 1 and 31.
918
- * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
919
- * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
920
- * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
921
- * @param ms A number from 0 to 999 that specifies the milliseconds.
922
- */
923
- UTC(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
924
- now(): number;
925
- }
926
-
927
- declare var Date: DateConstructor;
928
-
929
- interface RegExpMatchArray extends Array<string> {
930
- index?: number;
931
- input?: string;
932
- }
933
-
934
- interface RegExpExecArray extends Array<string> {
935
- index: number;
936
- input: string;
937
- }
938
-
939
- interface RegExp {
940
- /**
941
- * Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.
942
- * @param string The String object or string literal on which to perform the search.
943
- */
944
- exec(string: string): RegExpExecArray | null;
945
-
946
- /**
947
- * Returns a Boolean value that indicates whether or not a pattern exists in a searched string.
948
- * @param string String on which to perform the search.
949
- */
950
- test(string: string): boolean;
951
-
952
- /** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */
953
- readonly source: string;
954
-
955
- /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */
956
- readonly global: boolean;
957
-
958
- /** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */
959
- readonly ignoreCase: boolean;
960
-
961
- /** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */
962
- readonly multiline: boolean;
963
-
964
- lastIndex: number;
965
-
966
- // Non-standard extensions
967
- /** @deprecated A legacy feature for browser compatibility */
968
- compile(pattern: string, flags?: string): this;
969
- }
970
-
971
- interface RegExpConstructor {
972
- new(pattern: RegExp | string): RegExp;
973
- new(pattern: string, flags?: string): RegExp;
974
- (pattern: RegExp | string): RegExp;
975
- (pattern: string, flags?: string): RegExp;
976
- readonly prototype: RegExp;
977
-
978
- // Non-standard extensions
979
- /** @deprecated A legacy feature for browser compatibility */
980
- $1: string;
981
- /** @deprecated A legacy feature for browser compatibility */
982
- $2: string;
983
- /** @deprecated A legacy feature for browser compatibility */
984
- $3: string;
985
- /** @deprecated A legacy feature for browser compatibility */
986
- $4: string;
987
- /** @deprecated A legacy feature for browser compatibility */
988
- $5: string;
989
- /** @deprecated A legacy feature for browser compatibility */
990
- $6: string;
991
- /** @deprecated A legacy feature for browser compatibility */
992
- $7: string;
993
- /** @deprecated A legacy feature for browser compatibility */
994
- $8: string;
995
- /** @deprecated A legacy feature for browser compatibility */
996
- $9: string;
997
- /** @deprecated A legacy feature for browser compatibility */
998
- input: string;
999
- /** @deprecated A legacy feature for browser compatibility */
1000
- $_: string;
1001
- /** @deprecated A legacy feature for browser compatibility */
1002
- lastMatch: string;
1003
- /** @deprecated A legacy feature for browser compatibility */
1004
- "$&": string;
1005
- /** @deprecated A legacy feature for browser compatibility */
1006
- lastParen: string;
1007
- /** @deprecated A legacy feature for browser compatibility */
1008
- "$+": string;
1009
- /** @deprecated A legacy feature for browser compatibility */
1010
- leftContext: string;
1011
- /** @deprecated A legacy feature for browser compatibility */
1012
- "$`": string;
1013
- /** @deprecated A legacy feature for browser compatibility */
1014
- rightContext: string;
1015
- /** @deprecated A legacy feature for browser compatibility */
1016
- "$'": string;
1017
- }
1018
-
1019
- declare var RegExp: RegExpConstructor;
1020
-
1021
- interface Error {
1022
- name: string;
1023
- message: string;
1024
- stack?: string;
1025
- }
1026
-
1027
- interface ErrorConstructor {
1028
- new(message?: string): Error;
1029
- (message?: string): Error;
1030
- readonly prototype: Error;
1031
- }
1032
-
1033
- declare var Error: ErrorConstructor;
1034
-
1035
- interface EvalError extends Error {
1036
- }
1037
-
1038
- interface EvalErrorConstructor extends ErrorConstructor {
1039
- new(message?: string): EvalError;
1040
- (message?: string): EvalError;
1041
- readonly prototype: EvalError;
1042
- }
1043
-
1044
- declare var EvalError: EvalErrorConstructor;
1045
-
1046
- interface RangeError extends Error {
1047
- }
1048
-
1049
- interface RangeErrorConstructor extends ErrorConstructor {
1050
- new(message?: string): RangeError;
1051
- (message?: string): RangeError;
1052
- readonly prototype: RangeError;
1053
- }
1054
-
1055
- declare var RangeError: RangeErrorConstructor;
1056
-
1057
- interface ReferenceError extends Error {
1058
- }
1059
-
1060
- interface ReferenceErrorConstructor extends ErrorConstructor {
1061
- new(message?: string): ReferenceError;
1062
- (message?: string): ReferenceError;
1063
- readonly prototype: ReferenceError;
1064
- }
1065
-
1066
- declare var ReferenceError: ReferenceErrorConstructor;
1067
-
1068
- interface SyntaxError extends Error {
1069
- }
1070
-
1071
- interface SyntaxErrorConstructor extends ErrorConstructor {
1072
- new(message?: string): SyntaxError;
1073
- (message?: string): SyntaxError;
1074
- readonly prototype: SyntaxError;
1075
- }
1076
-
1077
- declare var SyntaxError: SyntaxErrorConstructor;
1078
-
1079
- interface TypeError extends Error {
1080
- }
1081
-
1082
- interface TypeErrorConstructor extends ErrorConstructor {
1083
- new(message?: string): TypeError;
1084
- (message?: string): TypeError;
1085
- readonly prototype: TypeError;
1086
- }
1087
-
1088
- declare var TypeError: TypeErrorConstructor;
1089
-
1090
- interface URIError extends Error {
1091
- }
1092
-
1093
- interface URIErrorConstructor extends ErrorConstructor {
1094
- new(message?: string): URIError;
1095
- (message?: string): URIError;
1096
- readonly prototype: URIError;
1097
- }
1098
-
1099
- declare var URIError: URIErrorConstructor;
1100
-
1101
- interface JSON {
1102
- /**
1103
- * Converts a JavaScript Object Notation (JSON) string into an object.
1104
- * @param text A valid JSON string.
1105
- * @param reviver A function that transforms the results. This function is called for each member of the object.
1106
- * If a member contains nested objects, the nested objects are transformed before the parent object is.
1107
- */
1108
- parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
1109
- /**
1110
- * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
1111
- * @param value A JavaScript value, usually an object or array, to be converted.
1112
- * @param replacer A function that transforms the results.
1113
- * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
1114
- */
1115
- stringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
1116
- /**
1117
- * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
1118
- * @param value A JavaScript value, usually an object or array, to be converted.
1119
- * @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.
1120
- * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
1121
- */
1122
- stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
1123
- }
1124
-
1125
- /**
1126
- * An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.
1127
- */
1128
- declare var JSON: JSON;
1129
-
1130
-
1131
- /////////////////////////////
1132
- /// ECMAScript Array API (specially handled by compiler)
1133
- /////////////////////////////
1134
-
1135
- interface ReadonlyArray<T> {
1136
- /**
1137
- * Gets the length of the array. This is a number one higher than the highest element defined in an array.
1138
- */
1139
- readonly length: number;
1140
- /**
1141
- * Returns a string representation of an array.
1142
- */
1143
- toString(): string;
1144
- /**
1145
- * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
1146
- */
1147
- toLocaleString(): string;
1148
- /**
1149
- * Combines two or more arrays.
1150
- * @param items Additional items to add to the end of array1.
1151
- */
1152
- concat(...items: ConcatArray<T>[]): T[];
1153
- /**
1154
- * Combines two or more arrays.
1155
- * @param items Additional items to add to the end of array1.
1156
- */
1157
- concat(...items: (T | ConcatArray<T>)[]): T[];
1158
- /**
1159
- * Adds all the elements of an array separated by the specified separator string.
1160
- * @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.
1161
- */
1162
- join(separator?: string): string;
1163
- /**
1164
- * Returns a section of an array.
1165
- * @param start The beginning of the specified portion of the array.
1166
- * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
1167
- */
1168
- slice(start?: number, end?: number): T[];
1169
- /**
1170
- * Returns the index of the first occurrence of a value in an array.
1171
- * @param searchElement The value to locate in the array.
1172
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
1173
- */
1174
- indexOf(searchElement: T, fromIndex?: number): number;
1175
- /**
1176
- * Returns the index of the last occurrence of a specified value in an array.
1177
- * @param searchElement The value to locate in the array.
1178
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.
1179
- */
1180
- lastIndexOf(searchElement: T, fromIndex?: number): number;
1181
- /**
1182
- * Determines whether all the members of an array satisfy the specified test.
1183
- * @param predicate A function that accepts up to three arguments. The every method calls
1184
- * the predicate function for each element in the array until the predicate returns a value
1185
- * which is coercible to the Boolean value false, or until the end of the array.
1186
- * @param thisArg An object to which the this keyword can refer in the predicate function.
1187
- * If thisArg is omitted, undefined is used as the this value.
1188
- */
1189
- every<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): this is readonly S[];
1190
- /**
1191
- * Determines whether all the members of an array satisfy the specified test.
1192
- * @param predicate A function that accepts up to three arguments. The every method calls
1193
- * the predicate function for each element in the array until the predicate returns a value
1194
- * which is coercible to the Boolean value false, or until the end of the array.
1195
- * @param thisArg An object to which the this keyword can refer in the predicate function.
1196
- * If thisArg is omitted, undefined is used as the this value.
1197
- */
1198
- every(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
1199
- /**
1200
- * Determines whether the specified callback function returns true for any element of an array.
1201
- * @param predicate A function that accepts up to three arguments. The some method calls
1202
- * the predicate function for each element in the array until the predicate returns a value
1203
- * which is coercible to the Boolean value true, or until the end of the array.
1204
- * @param thisArg An object to which the this keyword can refer in the predicate function.
1205
- * If thisArg is omitted, undefined is used as the this value.
1206
- */
1207
- some(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
1208
- /**
1209
- * Performs the specified action for each element in an array.
1210
- * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
1211
- * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
1212
- */
1213
- forEach(callbackfn: (value: T, index: number, array: readonly T[]) => void, thisArg?: any): void;
1214
- /**
1215
- * Calls a defined callback function on each element of an array, and returns an array that contains the results.
1216
- * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
1217
- * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
1218
- */
1219
- map<U>(callbackfn: (value: T, index: number, array: readonly T[]) => U, thisArg?: any): U[];
1220
- /**
1221
- * Returns the elements of an array that meet the condition specified in a callback function.
1222
- * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
1223
- * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
1224
- */
1225
- filter<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S[];
1226
- /**
1227
- * Returns the elements of an array that meet the condition specified in a callback function.
1228
- * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
1229
- * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
1230
- */
1231
- filter(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T[];
1232
- /**
1233
- * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
1234
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
1235
- * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
1236
- */
1237
- reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;
1238
- reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;
1239
- /**
1240
- * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
1241
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
1242
- * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
1243
- */
1244
- reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;
1245
- /**
1246
- * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
1247
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
1248
- * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
1249
- */
1250
- reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;
1251
- reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;
1252
- /**
1253
- * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
1254
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
1255
- * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
1256
- */
1257
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;
1258
-
1259
- readonly [n: number]: T;
1260
- }
1261
-
1262
- interface ConcatArray<T> {
1263
- readonly length: number;
1264
- readonly [n: number]: T;
1265
- join(separator?: string): string;
1266
- slice(start?: number, end?: number): T[];
1267
- }
1268
-
1269
- interface Array<T> {
1270
- /**
1271
- * Gets or sets the length of the array. This is a number one higher than the highest index in the array.
1272
- */
1273
- length: number;
1274
- /**
1275
- * Returns a string representation of an array.
1276
- */
1277
- toString(): string;
1278
- /**
1279
- * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
1280
- */
1281
- toLocaleString(): string;
1282
- /**
1283
- * Removes the last element from an array and returns it.
1284
- * If the array is empty, undefined is returned and the array is not modified.
1285
- */
1286
- pop(): T | undefined;
1287
- /**
1288
- * Appends new elements to the end of an array, and returns the new length of the array.
1289
- * @param items New elements to add to the array.
1290
- */
1291
- push(...items: T[]): number;
1292
- /**
1293
- * Combines two or more arrays.
1294
- * This method returns a new array without modifying any existing arrays.
1295
- * @param items Additional arrays and/or items to add to the end of the array.
1296
- */
1297
- concat(...items: ConcatArray<T>[]): T[];
1298
- /**
1299
- * Combines two or more arrays.
1300
- * This method returns a new array without modifying any existing arrays.
1301
- * @param items Additional arrays and/or items to add to the end of the array.
1302
- */
1303
- concat(...items: (T | ConcatArray<T>)[]): T[];
1304
- /**
1305
- * Adds all the elements of an array into a string, separated by the specified separator string.
1306
- * @param separator A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.
1307
- */
1308
- join(separator?: string): string;
1309
- /**
1310
- * Reverses the elements in an array in place.
1311
- * This method mutates the array and returns a reference to the same array.
1312
- */
1313
- reverse(): T[];
1314
- /**
1315
- * Removes the first element from an array and returns it.
1316
- * If the array is empty, undefined is returned and the array is not modified.
1317
- */
1318
- shift(): T | undefined;
1319
- /**
1320
- * Returns a copy of a section of an array.
1321
- * For both start and end, a negative index can be used to indicate an offset from the end of the array.
1322
- * For example, -2 refers to the second to last element of the array.
1323
- * @param start The beginning index of the specified portion of the array.
1324
- * If start is undefined, then the slice begins at index 0.
1325
- * @param end The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.
1326
- * If end is undefined, then the slice extends to the end of the array.
1327
- */
1328
- slice(start?: number, end?: number): T[];
1329
- /**
1330
- * Sorts an array in place.
1331
- * This method mutates the array and returns a reference to the same array.
1332
- * @param compareFn Function used to determine the order of the elements. It is expected to return
1333
- * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
1334
- * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
1335
- * ```ts
1336
- * [11,2,22,1].sort((a, b) => a - b)
1337
- * ```
1338
- */
1339
- sort(compareFn?: (a: T, b: T) => number): this;
1340
- /**
1341
- * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
1342
- * @param start The zero-based location in the array from which to start removing elements.
1343
- * @param deleteCount The number of elements to remove.
1344
- * @returns An array containing the elements that were deleted.
1345
- */
1346
- splice(start: number, deleteCount?: number): T[];
1347
- /**
1348
- * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
1349
- * @param start The zero-based location in the array from which to start removing elements.
1350
- * @param deleteCount The number of elements to remove.
1351
- * @param items Elements to insert into the array in place of the deleted elements.
1352
- * @returns An array containing the elements that were deleted.
1353
- */
1354
- splice(start: number, deleteCount: number, ...items: T[]): T[];
1355
- /**
1356
- * Inserts new elements at the start of an array, and returns the new length of the array.
1357
- * @param items Elements to insert at the start of the array.
1358
- */
1359
- unshift(...items: T[]): number;
1360
- /**
1361
- * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
1362
- * @param searchElement The value to locate in the array.
1363
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
1364
- */
1365
- indexOf(searchElement: T, fromIndex?: number): number;
1366
- /**
1367
- * Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.
1368
- * @param searchElement The value to locate in the array.
1369
- * @param fromIndex The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.
1370
- */
1371
- lastIndexOf(searchElement: T, fromIndex?: number): number;
1372
- /**
1373
- * Determines whether all the members of an array satisfy the specified test.
1374
- * @param predicate A function that accepts up to three arguments. The every method calls
1375
- * the predicate function for each element in the array until the predicate returns a value
1376
- * which is coercible to the Boolean value false, or until the end of the array.
1377
- * @param thisArg An object to which the this keyword can refer in the predicate function.
1378
- * If thisArg is omitted, undefined is used as the this value.
1379
- */
1380
- every<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): this is S[];
1381
- /**
1382
- * Determines whether all the members of an array satisfy the specified test.
1383
- * @param predicate A function that accepts up to three arguments. The every method calls
1384
- * the predicate function for each element in the array until the predicate returns a value
1385
- * which is coercible to the Boolean value false, or until the end of the array.
1386
- * @param thisArg An object to which the this keyword can refer in the predicate function.
1387
- * If thisArg is omitted, undefined is used as the this value.
1388
- */
1389
- every(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
1390
- /**
1391
- * Determines whether the specified callback function returns true for any element of an array.
1392
- * @param predicate A function that accepts up to three arguments. The some method calls
1393
- * the predicate function for each element in the array until the predicate returns a value
1394
- * which is coercible to the Boolean value true, or until the end of the array.
1395
- * @param thisArg An object to which the this keyword can refer in the predicate function.
1396
- * If thisArg is omitted, undefined is used as the this value.
1397
- */
1398
- some(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
1399
- /**
1400
- * Performs the specified action for each element in an array.
1401
- * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
1402
- * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
1403
- */
1404
- forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;
1405
- /**
1406
- * Calls a defined callback function on each element of an array, and returns an array that contains the results.
1407
- * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
1408
- * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
1409
- */
1410
- map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];
1411
- /**
1412
- * Returns the elements of an array that meet the condition specified in a callback function.
1413
- * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
1414
- * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
1415
- */
1416
- filter<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S[];
1417
- /**
1418
- * Returns the elements of an array that meet the condition specified in a callback function.
1419
- * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
1420
- * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
1421
- */
1422
- filter(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T[];
1423
- /**
1424
- * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
1425
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
1426
- * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
1427
- */
1428
- reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
1429
- reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
1430
- /**
1431
- * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
1432
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
1433
- * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
1434
- */
1435
- reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
1436
- /**
1437
- * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
1438
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
1439
- * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
1440
- */
1441
- reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
1442
- reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
1443
- /**
1444
- * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
1445
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
1446
- * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
1447
- */
1448
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
1449
-
1450
- [n: number]: T;
1451
- }
1452
-
1453
- interface ArrayConstructor {
1454
- new(arrayLength?: number): any[];
1455
- new <T>(arrayLength: number): T[];
1456
- new <T>(...items: T[]): T[];
1457
- (arrayLength?: number): any[];
1458
- <T>(arrayLength: number): T[];
1459
- <T>(...items: T[]): T[];
1460
- isArray(arg: any): arg is any[];
1461
- readonly prototype: any[];
1462
- }
1463
-
1464
- declare var Array: ArrayConstructor;
1465
-
1466
- interface TypedPropertyDescriptor<T> {
1467
- enumerable?: boolean;
1468
- configurable?: boolean;
1469
- writable?: boolean;
1470
- value?: T;
1471
- get?: () => T;
1472
- set?: (value: T) => void;
1473
- }
1474
-
1475
- declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
1476
- declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
1477
- declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
1478
- declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;
1479
-
1480
- declare type PromiseConstructorLike = new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>;
1481
-
1482
- interface PromiseLike<T> {
1483
- /**
1484
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1485
- * @param onfulfilled The callback to execute when the Promise is resolved.
1486
- * @param onrejected The callback to execute when the Promise is rejected.
1487
- * @returns A Promise for the completion of which ever callback is executed.
1488
- */
1489
- then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>;
1490
- }
1491
-
1492
- /**
1493
- * Represents the completion of an asynchronous operation
1494
- */
1495
- interface Promise<T> {
1496
- /**
1497
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1498
- * @param onfulfilled The callback to execute when the Promise is resolved.
1499
- * @param onrejected The callback to execute when the Promise is rejected.
1500
- * @returns A Promise for the completion of which ever callback is executed.
1501
- */
1502
- then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
1503
-
1504
- /**
1505
- * Attaches a callback for only the rejection of the Promise.
1506
- * @param onrejected The callback to execute when the Promise is rejected.
1507
- * @returns A Promise for the completion of the callback.
1508
- */
1509
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
1510
- }
1511
-
1512
- /**
1513
- * Recursively unwraps the "awaited type" of a type. Non-promise "thenables" should resolve to `never`. This emulates the behavior of `await`.
1514
- */
1515
- type Awaited<T> =
1516
- T extends null | undefined ? T : // special case for `null | undefined` when not in `--strictNullChecks` mode
1517
- T extends object & { then(onfulfilled: infer F): any } ? // `await` only unwraps object types with a callable `then`. Non-object types are not unwrapped
1518
- F extends ((value: infer V, ...args: any) => any) ? // if the argument to `then` is callable, extracts the first argument
1519
- Awaited<V> : // recursively unwrap the value
1520
- never : // the argument to `then` was not callable
1521
- T; // non-object or non-thenable
1522
-
1523
- interface ArrayLike<T> {
1524
- readonly length: number;
1525
- readonly [n: number]: T;
1526
- }
1527
-
1528
- /**
1529
- * Make all properties in T optional
1530
- */
1531
- type Partial<T> = {
1532
- [P in keyof T]?: T[P];
1533
- };
1534
-
1535
- /**
1536
- * Make all properties in T required
1537
- */
1538
- type Required<T> = {
1539
- [P in keyof T]-?: T[P];
1540
- };
1541
-
1542
- /**
1543
- * Make all properties in T readonly
1544
- */
1545
- type Readonly<T> = {
1546
- readonly [P in keyof T]: T[P];
1547
- };
1548
-
1549
- /**
1550
- * From T, pick a set of properties whose keys are in the union K
1551
- */
1552
- type Pick<T, K extends keyof T> = {
1553
- [P in K]: T[P];
1554
- };
1555
-
1556
- /**
1557
- * Construct a type with a set of properties K of type T
1558
- */
1559
- type Record<K extends keyof any, T> = {
1560
- [P in K]: T;
1561
- };
1562
-
1563
- /**
1564
- * Exclude from T those types that are assignable to U
1565
- */
1566
- type Exclude<T, U> = T extends U ? never : T;
1567
-
1568
- /**
1569
- * Extract from T those types that are assignable to U
1570
- */
1571
- type Extract<T, U> = T extends U ? T : never;
1572
-
1573
- /**
1574
- * Construct a type with the properties of T except for those in type K.
1575
- */
1576
- type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
1577
-
1578
- /**
1579
- * Exclude null and undefined from T
1580
- */
1581
- type NonNullable<T> = T extends null | undefined ? never : T;
1582
-
1583
- /**
1584
- * Obtain the parameters of a function type in a tuple
1585
- */
1586
- type Parameters<T extends (...args: any) => any> = T extends (...args: infer P) => any ? P : never;
1587
-
1588
- /**
1589
- * Obtain the parameters of a constructor function type in a tuple
1590
- */
1591
- type ConstructorParameters<T extends abstract new (...args: any) => any> = T extends abstract new (...args: infer P) => any ? P : never;
1592
-
1593
- /**
1594
- * Obtain the return type of a function type
1595
- */
1596
- type ReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : any;
1597
-
1598
- /**
1599
- * Obtain the return type of a constructor function type
1600
- */
1601
- type InstanceType<T extends abstract new (...args: any) => any> = T extends abstract new (...args: any) => infer R ? R : any;
1602
-
1603
- /**
1604
- * Convert string literal type to uppercase
1605
- */
1606
- type Uppercase<S extends string> = intrinsic;
1607
-
1608
- /**
1609
- * Convert string literal type to lowercase
1610
- */
1611
- type Lowercase<S extends string> = intrinsic;
1612
-
1613
- /**
1614
- * Convert first character of string literal type to uppercase
1615
- */
1616
- type Capitalize<S extends string> = intrinsic;
1617
-
1618
- /**
1619
- * Convert first character of string literal type to lowercase
1620
- */
1621
- type Uncapitalize<S extends string> = intrinsic;
1622
-
1623
- /**
1624
- * Marker for contextual 'this' type
1625
- */
1626
- interface ThisType<T> { }
1627
-
1628
- /**
1629
- * Represents a raw buffer of binary data, which is used to store data for the
1630
- * different typed arrays. ArrayBuffers cannot be read from or written to directly,
1631
- * but can be passed to a typed array or DataView Object to interpret the raw
1632
- * buffer as needed.
1633
- */
1634
- interface ArrayBuffer {
1635
- /**
1636
- * Read-only. The length of the ArrayBuffer (in bytes).
1637
- */
1638
- readonly byteLength: number;
1639
-
1640
- /**
1641
- * Returns a section of an ArrayBuffer.
1642
- */
1643
- slice(begin: number, end?: number): ArrayBuffer;
1644
- }
1645
-
1646
- /**
1647
- * Allowed ArrayBuffer types for the buffer of an ArrayBufferView and related Typed Arrays.
1648
- */
1649
- interface ArrayBufferTypes {
1650
- ArrayBuffer: ArrayBuffer;
1651
- }
1652
- type ArrayBufferLike = ArrayBufferTypes[keyof ArrayBufferTypes];
1653
-
1654
- interface ArrayBufferConstructor {
1655
- readonly prototype: ArrayBuffer;
1656
- new(byteLength: number): ArrayBuffer;
1657
- isView(arg: any): arg is ArrayBufferView;
1658
- }
1659
- declare var ArrayBuffer: ArrayBufferConstructor;
1660
-
1661
- interface ArrayBufferView {
1662
- /**
1663
- * The ArrayBuffer instance referenced by the array.
1664
- */
1665
- buffer: ArrayBufferLike;
1666
-
1667
- /**
1668
- * The length in bytes of the array.
1669
- */
1670
- byteLength: number;
1671
-
1672
- /**
1673
- * The offset in bytes of the array.
1674
- */
1675
- byteOffset: number;
1676
- }
1677
-
1678
- interface DataView {
1679
- readonly buffer: ArrayBuffer;
1680
- readonly byteLength: number;
1681
- readonly byteOffset: number;
1682
- /**
1683
- * Gets the Float32 value at the specified byte offset from the start of the view. There is
1684
- * no alignment constraint; multi-byte values may be fetched from any offset.
1685
- * @param byteOffset The place in the buffer at which the value should be retrieved.
1686
- */
1687
- getFloat32(byteOffset: number, littleEndian?: boolean): number;
1688
-
1689
- /**
1690
- * Gets the Float64 value at the specified byte offset from the start of the view. There is
1691
- * no alignment constraint; multi-byte values may be fetched from any offset.
1692
- * @param byteOffset The place in the buffer at which the value should be retrieved.
1693
- */
1694
- getFloat64(byteOffset: number, littleEndian?: boolean): number;
1695
-
1696
- /**
1697
- * Gets the Int8 value at the specified byte offset from the start of the view. There is
1698
- * no alignment constraint; multi-byte values may be fetched from any offset.
1699
- * @param byteOffset The place in the buffer at which the value should be retrieved.
1700
- */
1701
- getInt8(byteOffset: number): number;
1702
-
1703
- /**
1704
- * Gets the Int16 value at the specified byte offset from the start of the view. There is
1705
- * no alignment constraint; multi-byte values may be fetched from any offset.
1706
- * @param byteOffset The place in the buffer at which the value should be retrieved.
1707
- */
1708
- getInt16(byteOffset: number, littleEndian?: boolean): number;
1709
- /**
1710
- * Gets the Int32 value at the specified byte offset from the start of the view. There is
1711
- * no alignment constraint; multi-byte values may be fetched from any offset.
1712
- * @param byteOffset The place in the buffer at which the value should be retrieved.
1713
- */
1714
- getInt32(byteOffset: number, littleEndian?: boolean): number;
1715
-
1716
- /**
1717
- * Gets the Uint8 value at the specified byte offset from the start of the view. There is
1718
- * no alignment constraint; multi-byte values may be fetched from any offset.
1719
- * @param byteOffset The place in the buffer at which the value should be retrieved.
1720
- */
1721
- getUint8(byteOffset: number): number;
1722
-
1723
- /**
1724
- * Gets the Uint16 value at the specified byte offset from the start of the view. There is
1725
- * no alignment constraint; multi-byte values may be fetched from any offset.
1726
- * @param byteOffset The place in the buffer at which the value should be retrieved.
1727
- */
1728
- getUint16(byteOffset: number, littleEndian?: boolean): number;
1729
-
1730
- /**
1731
- * Gets the Uint32 value at the specified byte offset from the start of the view. There is
1732
- * no alignment constraint; multi-byte values may be fetched from any offset.
1733
- * @param byteOffset The place in the buffer at which the value should be retrieved.
1734
- */
1735
- getUint32(byteOffset: number, littleEndian?: boolean): number;
1736
-
1737
- /**
1738
- * Stores an Float32 value at the specified byte offset from the start of the view.
1739
- * @param byteOffset The place in the buffer at which the value should be set.
1740
- * @param value The value to set.
1741
- * @param littleEndian If false or undefined, a big-endian value should be written,
1742
- * otherwise a little-endian value should be written.
1743
- */
1744
- setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;
1745
-
1746
- /**
1747
- * Stores an Float64 value at the specified byte offset from the start of the view.
1748
- * @param byteOffset The place in the buffer at which the value should be set.
1749
- * @param value The value to set.
1750
- * @param littleEndian If false or undefined, a big-endian value should be written,
1751
- * otherwise a little-endian value should be written.
1752
- */
1753
- setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;
1754
-
1755
- /**
1756
- * Stores an Int8 value at the specified byte offset from the start of the view.
1757
- * @param byteOffset The place in the buffer at which the value should be set.
1758
- * @param value The value to set.
1759
- */
1760
- setInt8(byteOffset: number, value: number): void;
1761
-
1762
- /**
1763
- * Stores an Int16 value at the specified byte offset from the start of the view.
1764
- * @param byteOffset The place in the buffer at which the value should be set.
1765
- * @param value The value to set.
1766
- * @param littleEndian If false or undefined, a big-endian value should be written,
1767
- * otherwise a little-endian value should be written.
1768
- */
1769
- setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;
1770
-
1771
- /**
1772
- * Stores an Int32 value at the specified byte offset from the start of the view.
1773
- * @param byteOffset The place in the buffer at which the value should be set.
1774
- * @param value The value to set.
1775
- * @param littleEndian If false or undefined, a big-endian value should be written,
1776
- * otherwise a little-endian value should be written.
1777
- */
1778
- setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;
1779
-
1780
- /**
1781
- * Stores an Uint8 value at the specified byte offset from the start of the view.
1782
- * @param byteOffset The place in the buffer at which the value should be set.
1783
- * @param value The value to set.
1784
- */
1785
- setUint8(byteOffset: number, value: number): void;
1786
-
1787
- /**
1788
- * Stores an Uint16 value at the specified byte offset from the start of the view.
1789
- * @param byteOffset The place in the buffer at which the value should be set.
1790
- * @param value The value to set.
1791
- * @param littleEndian If false or undefined, a big-endian value should be written,
1792
- * otherwise a little-endian value should be written.
1793
- */
1794
- setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;
1795
-
1796
- /**
1797
- * Stores an Uint32 value at the specified byte offset from the start of the view.
1798
- * @param byteOffset The place in the buffer at which the value should be set.
1799
- * @param value The value to set.
1800
- * @param littleEndian If false or undefined, a big-endian value should be written,
1801
- * otherwise a little-endian value should be written.
1802
- */
1803
- setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
1804
- }
1805
-
1806
- interface DataViewConstructor {
1807
- readonly prototype: DataView;
1808
- new(buffer: ArrayBufferLike, byteOffset?: number, byteLength?: number): DataView;
1809
- }
1810
- declare var DataView: DataViewConstructor;
1811
-
1812
- /**
1813
- * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
1814
- * number of bytes could not be allocated an exception is raised.
1815
- */
1816
- interface Int8Array {
1817
- /**
1818
- * The size in bytes of each element in the array.
1819
- */
1820
- readonly BYTES_PER_ELEMENT: number;
1821
-
1822
- /**
1823
- * The ArrayBuffer instance referenced by the array.
1824
- */
1825
- readonly buffer: ArrayBufferLike;
1826
-
1827
- /**
1828
- * The length in bytes of the array.
1829
- */
1830
- readonly byteLength: number;
1831
-
1832
- /**
1833
- * The offset in bytes of the array.
1834
- */
1835
- readonly byteOffset: number;
1836
-
1837
- /**
1838
- * Returns the this object after copying a section of the array identified by start and end
1839
- * to the same array starting at position target
1840
- * @param target If target is negative, it is treated as length+target where length is the
1841
- * length of the array.
1842
- * @param start If start is negative, it is treated as length+start. If end is negative, it
1843
- * is treated as length+end.
1844
- * @param end If not specified, length of the this object is used as its default value.
1845
- */
1846
- copyWithin(target: number, start: number, end?: number): this;
1847
-
1848
- /**
1849
- * Determines whether all the members of an array satisfy the specified test.
1850
- * @param predicate A function that accepts up to three arguments. The every method calls
1851
- * the predicate function for each element in the array until the predicate returns a value
1852
- * which is coercible to the Boolean value false, or until the end of the array.
1853
- * @param thisArg An object to which the this keyword can refer in the predicate function.
1854
- * If thisArg is omitted, undefined is used as the this value.
1855
- */
1856
- every(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;
1857
-
1858
- /**
1859
- * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
1860
- * @param value value to fill array section with
1861
- * @param start index to start filling the array at. If start is negative, it is treated as
1862
- * length+start where length is the length of the array.
1863
- * @param end index to stop filling the array at. If end is negative, it is treated as
1864
- * length+end.
1865
- */
1866
- fill(value: number, start?: number, end?: number): this;
1867
-
1868
- /**
1869
- * Returns the elements of an array that meet the condition specified in a callback function.
1870
- * @param predicate A function that accepts up to three arguments. The filter method calls
1871
- * the predicate function one time for each element in the array.
1872
- * @param thisArg An object to which the this keyword can refer in the predicate function.
1873
- * If thisArg is omitted, undefined is used as the this value.
1874
- */
1875
- filter(predicate: (value: number, index: number, array: Int8Array) => any, thisArg?: any): Int8Array;
1876
-
1877
- /**
1878
- * Returns the value of the first element in the array where predicate is true, and undefined
1879
- * otherwise.
1880
- * @param predicate find calls predicate once for each element of the array, in ascending
1881
- * order, until it finds one where predicate returns true. If such an element is found, find
1882
- * immediately returns that element value. Otherwise, find returns undefined.
1883
- * @param thisArg If provided, it will be used as the this value for each invocation of
1884
- * predicate. If it is not provided, undefined is used instead.
1885
- */
1886
- find(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number | undefined;
1887
-
1888
- /**
1889
- * Returns the index of the first element in the array where predicate is true, and -1
1890
- * otherwise.
1891
- * @param predicate find calls predicate once for each element of the array, in ascending
1892
- * order, until it finds one where predicate returns true. If such an element is found,
1893
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
1894
- * @param thisArg If provided, it will be used as the this value for each invocation of
1895
- * predicate. If it is not provided, undefined is used instead.
1896
- */
1897
- findIndex(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number;
1898
-
1899
- /**
1900
- * Performs the specified action for each element in an array.
1901
- * @param callbackfn A function that accepts up to three arguments. forEach calls the
1902
- * callbackfn function one time for each element in the array.
1903
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
1904
- * If thisArg is omitted, undefined is used as the this value.
1905
- */
1906
- forEach(callbackfn: (value: number, index: number, array: Int8Array) => void, thisArg?: any): void;
1907
-
1908
- /**
1909
- * Returns the index of the first occurrence of a value in an array.
1910
- * @param searchElement The value to locate in the array.
1911
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
1912
- * search starts at index 0.
1913
- */
1914
- indexOf(searchElement: number, fromIndex?: number): number;
1915
-
1916
- /**
1917
- * Adds all the elements of an array separated by the specified separator string.
1918
- * @param separator A string used to separate one element of an array from the next in the
1919
- * resulting String. If omitted, the array elements are separated with a comma.
1920
- */
1921
- join(separator?: string): string;
1922
-
1923
- /**
1924
- * Returns the index of the last occurrence of a value in an array.
1925
- * @param searchElement The value to locate in the array.
1926
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
1927
- * search starts at index 0.
1928
- */
1929
- lastIndexOf(searchElement: number, fromIndex?: number): number;
1930
-
1931
- /**
1932
- * The length of the array.
1933
- */
1934
- readonly length: number;
1935
-
1936
- /**
1937
- * Calls a defined callback function on each element of an array, and returns an array that
1938
- * contains the results.
1939
- * @param callbackfn A function that accepts up to three arguments. The map method calls the
1940
- * callbackfn function one time for each element in the array.
1941
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
1942
- * If thisArg is omitted, undefined is used as the this value.
1943
- */
1944
- map(callbackfn: (value: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array;
1945
-
1946
- /**
1947
- * Calls the specified callback function for all the elements in an array. The return value of
1948
- * the callback function is the accumulated result, and is provided as an argument in the next
1949
- * call to the callback function.
1950
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
1951
- * callbackfn function one time for each element in the array.
1952
- * @param initialValue If initialValue is specified, it is used as the initial value to start
1953
- * the accumulation. The first call to the callbackfn function provides this value as an argument
1954
- * instead of an array value.
1955
- */
1956
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
1957
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
1958
-
1959
- /**
1960
- * Calls the specified callback function for all the elements in an array. The return value of
1961
- * the callback function is the accumulated result, and is provided as an argument in the next
1962
- * call to the callback function.
1963
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
1964
- * callbackfn function one time for each element in the array.
1965
- * @param initialValue If initialValue is specified, it is used as the initial value to start
1966
- * the accumulation. The first call to the callbackfn function provides this value as an argument
1967
- * instead of an array value.
1968
- */
1969
- reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
1970
-
1971
- /**
1972
- * Calls the specified callback function for all the elements in an array, in descending order.
1973
- * The return value of the callback function is the accumulated result, and is provided as an
1974
- * argument in the next call to the callback function.
1975
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
1976
- * the callbackfn function one time for each element in the array.
1977
- * @param initialValue If initialValue is specified, it is used as the initial value to start
1978
- * the accumulation. The first call to the callbackfn function provides this value as an
1979
- * argument instead of an array value.
1980
- */
1981
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
1982
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
1983
-
1984
- /**
1985
- * Calls the specified callback function for all the elements in an array, in descending order.
1986
- * The return value of the callback function is the accumulated result, and is provided as an
1987
- * argument in the next call to the callback function.
1988
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
1989
- * the callbackfn function one time for each element in the array.
1990
- * @param initialValue If initialValue is specified, it is used as the initial value to start
1991
- * the accumulation. The first call to the callbackfn function provides this value as an argument
1992
- * instead of an array value.
1993
- */
1994
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
1995
-
1996
- /**
1997
- * Reverses the elements in an Array.
1998
- */
1999
- reverse(): Int8Array;
2000
-
2001
- /**
2002
- * Sets a value or an array of values.
2003
- * @param array A typed or untyped array of values to set.
2004
- * @param offset The index in the current array at which the values are to be written.
2005
- */
2006
- set(array: ArrayLike<number>, offset?: number): void;
2007
-
2008
- /**
2009
- * Returns a section of an array.
2010
- * @param start The beginning of the specified portion of the array.
2011
- * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
2012
- */
2013
- slice(start?: number, end?: number): Int8Array;
2014
-
2015
- /**
2016
- * Determines whether the specified callback function returns true for any element of an array.
2017
- * @param predicate A function that accepts up to three arguments. The some method calls
2018
- * the predicate function for each element in the array until the predicate returns a value
2019
- * which is coercible to the Boolean value true, or until the end of the array.
2020
- * @param thisArg An object to which the this keyword can refer in the predicate function.
2021
- * If thisArg is omitted, undefined is used as the this value.
2022
- */
2023
- some(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;
2024
-
2025
- /**
2026
- * Sorts an array.
2027
- * @param compareFn Function used to determine the order of the elements. It is expected to return
2028
- * a negative value if first argument is less than second argument, zero if they're equal and a positive
2029
- * value otherwise. If omitted, the elements are sorted in ascending order.
2030
- * ```ts
2031
- * [11,2,22,1].sort((a, b) => a - b)
2032
- * ```
2033
- */
2034
- sort(compareFn?: (a: number, b: number) => number): this;
2035
-
2036
- /**
2037
- * Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements
2038
- * at begin, inclusive, up to end, exclusive.
2039
- * @param begin The index of the beginning of the array.
2040
- * @param end The index of the end of the array.
2041
- */
2042
- subarray(begin?: number, end?: number): Int8Array;
2043
-
2044
- /**
2045
- * Converts a number to a string by using the current locale.
2046
- */
2047
- toLocaleString(): string;
2048
-
2049
- /**
2050
- * Returns a string representation of an array.
2051
- */
2052
- toString(): string;
2053
-
2054
- /** Returns the primitive value of the specified object. */
2055
- valueOf(): Int8Array;
2056
-
2057
- [index: number]: number;
2058
- }
2059
- interface Int8ArrayConstructor {
2060
- readonly prototype: Int8Array;
2061
- new(length: number): Int8Array;
2062
- new(array: ArrayLike<number> | ArrayBufferLike): Int8Array;
2063
- new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int8Array;
2064
-
2065
- /**
2066
- * The size in bytes of each element in the array.
2067
- */
2068
- readonly BYTES_PER_ELEMENT: number;
2069
-
2070
- /**
2071
- * Returns a new array from a set of elements.
2072
- * @param items A set of elements to include in the new array object.
2073
- */
2074
- of(...items: number[]): Int8Array;
2075
-
2076
- /**
2077
- * Creates an array from an array-like or iterable object.
2078
- * @param arrayLike An array-like or iterable object to convert to an array.
2079
- */
2080
- from(arrayLike: ArrayLike<number>): Int8Array;
2081
-
2082
- /**
2083
- * Creates an array from an array-like or iterable object.
2084
- * @param arrayLike An array-like or iterable object to convert to an array.
2085
- * @param mapfn A mapping function to call on every element of the array.
2086
- * @param thisArg Value of 'this' used to invoke the mapfn.
2087
- */
2088
- from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array;
2089
-
2090
-
2091
- }
2092
- declare var Int8Array: Int8ArrayConstructor;
2093
-
2094
- /**
2095
- * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the
2096
- * requested number of bytes could not be allocated an exception is raised.
2097
- */
2098
- interface Uint8Array {
2099
- /**
2100
- * The size in bytes of each element in the array.
2101
- */
2102
- readonly BYTES_PER_ELEMENT: number;
2103
-
2104
- /**
2105
- * The ArrayBuffer instance referenced by the array.
2106
- */
2107
- readonly buffer: ArrayBufferLike;
2108
-
2109
- /**
2110
- * The length in bytes of the array.
2111
- */
2112
- readonly byteLength: number;
2113
-
2114
- /**
2115
- * The offset in bytes of the array.
2116
- */
2117
- readonly byteOffset: number;
2118
-
2119
- /**
2120
- * Returns the this object after copying a section of the array identified by start and end
2121
- * to the same array starting at position target
2122
- * @param target If target is negative, it is treated as length+target where length is the
2123
- * length of the array.
2124
- * @param start If start is negative, it is treated as length+start. If end is negative, it
2125
- * is treated as length+end.
2126
- * @param end If not specified, length of the this object is used as its default value.
2127
- */
2128
- copyWithin(target: number, start: number, end?: number): this;
2129
-
2130
- /**
2131
- * Determines whether all the members of an array satisfy the specified test.
2132
- * @param predicate A function that accepts up to three arguments. The every method calls
2133
- * the predicate function for each element in the array until the predicate returns a value
2134
- * which is coercible to the Boolean value false, or until the end of the array.
2135
- * @param thisArg An object to which the this keyword can refer in the predicate function.
2136
- * If thisArg is omitted, undefined is used as the this value.
2137
- */
2138
- every(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;
2139
-
2140
- /**
2141
- * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
2142
- * @param value value to fill array section with
2143
- * @param start index to start filling the array at. If start is negative, it is treated as
2144
- * length+start where length is the length of the array.
2145
- * @param end index to stop filling the array at. If end is negative, it is treated as
2146
- * length+end.
2147
- */
2148
- fill(value: number, start?: number, end?: number): this;
2149
-
2150
- /**
2151
- * Returns the elements of an array that meet the condition specified in a callback function.
2152
- * @param predicate A function that accepts up to three arguments. The filter method calls
2153
- * the predicate function one time for each element in the array.
2154
- * @param thisArg An object to which the this keyword can refer in the predicate function.
2155
- * If thisArg is omitted, undefined is used as the this value.
2156
- */
2157
- filter(predicate: (value: number, index: number, array: Uint8Array) => any, thisArg?: any): Uint8Array;
2158
-
2159
- /**
2160
- * Returns the value of the first element in the array where predicate is true, and undefined
2161
- * otherwise.
2162
- * @param predicate find calls predicate once for each element of the array, in ascending
2163
- * order, until it finds one where predicate returns true. If such an element is found, find
2164
- * immediately returns that element value. Otherwise, find returns undefined.
2165
- * @param thisArg If provided, it will be used as the this value for each invocation of
2166
- * predicate. If it is not provided, undefined is used instead.
2167
- */
2168
- find(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number | undefined;
2169
-
2170
- /**
2171
- * Returns the index of the first element in the array where predicate is true, and -1
2172
- * otherwise.
2173
- * @param predicate find calls predicate once for each element of the array, in ascending
2174
- * order, until it finds one where predicate returns true. If such an element is found,
2175
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
2176
- * @param thisArg If provided, it will be used as the this value for each invocation of
2177
- * predicate. If it is not provided, undefined is used instead.
2178
- */
2179
- findIndex(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number;
2180
-
2181
- /**
2182
- * Performs the specified action for each element in an array.
2183
- * @param callbackfn A function that accepts up to three arguments. forEach calls the
2184
- * callbackfn function one time for each element in the array.
2185
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2186
- * If thisArg is omitted, undefined is used as the this value.
2187
- */
2188
- forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any): void;
2189
-
2190
- /**
2191
- * Returns the index of the first occurrence of a value in an array.
2192
- * @param searchElement The value to locate in the array.
2193
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2194
- * search starts at index 0.
2195
- */
2196
- indexOf(searchElement: number, fromIndex?: number): number;
2197
-
2198
- /**
2199
- * Adds all the elements of an array separated by the specified separator string.
2200
- * @param separator A string used to separate one element of an array from the next in the
2201
- * resulting String. If omitted, the array elements are separated with a comma.
2202
- */
2203
- join(separator?: string): string;
2204
-
2205
- /**
2206
- * Returns the index of the last occurrence of a value in an array.
2207
- * @param searchElement The value to locate in the array.
2208
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2209
- * search starts at index 0.
2210
- */
2211
- lastIndexOf(searchElement: number, fromIndex?: number): number;
2212
-
2213
- /**
2214
- * The length of the array.
2215
- */
2216
- readonly length: number;
2217
-
2218
- /**
2219
- * Calls a defined callback function on each element of an array, and returns an array that
2220
- * contains the results.
2221
- * @param callbackfn A function that accepts up to three arguments. The map method calls the
2222
- * callbackfn function one time for each element in the array.
2223
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2224
- * If thisArg is omitted, undefined is used as the this value.
2225
- */
2226
- map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array;
2227
-
2228
- /**
2229
- * Calls the specified callback function for all the elements in an array. The return value of
2230
- * the callback function is the accumulated result, and is provided as an argument in the next
2231
- * call to the callback function.
2232
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
2233
- * callbackfn function one time for each element in the array.
2234
- * @param initialValue If initialValue is specified, it is used as the initial value to start
2235
- * the accumulation. The first call to the callbackfn function provides this value as an argument
2236
- * instead of an array value.
2237
- */
2238
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
2239
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
2240
-
2241
- /**
2242
- * Calls the specified callback function for all the elements in an array. The return value of
2243
- * the callback function is the accumulated result, and is provided as an argument in the next
2244
- * call to the callback function.
2245
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
2246
- * callbackfn function one time for each element in the array.
2247
- * @param initialValue If initialValue is specified, it is used as the initial value to start
2248
- * the accumulation. The first call to the callbackfn function provides this value as an argument
2249
- * instead of an array value.
2250
- */
2251
- reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
2252
-
2253
- /**
2254
- * Calls the specified callback function for all the elements in an array, in descending order.
2255
- * The return value of the callback function is the accumulated result, and is provided as an
2256
- * argument in the next call to the callback function.
2257
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
2258
- * the callbackfn function one time for each element in the array.
2259
- * @param initialValue If initialValue is specified, it is used as the initial value to start
2260
- * the accumulation. The first call to the callbackfn function provides this value as an
2261
- * argument instead of an array value.
2262
- */
2263
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
2264
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
2265
-
2266
- /**
2267
- * Calls the specified callback function for all the elements in an array, in descending order.
2268
- * The return value of the callback function is the accumulated result, and is provided as an
2269
- * argument in the next call to the callback function.
2270
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
2271
- * the callbackfn function one time for each element in the array.
2272
- * @param initialValue If initialValue is specified, it is used as the initial value to start
2273
- * the accumulation. The first call to the callbackfn function provides this value as an argument
2274
- * instead of an array value.
2275
- */
2276
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
2277
-
2278
- /**
2279
- * Reverses the elements in an Array.
2280
- */
2281
- reverse(): Uint8Array;
2282
-
2283
- /**
2284
- * Sets a value or an array of values.
2285
- * @param array A typed or untyped array of values to set.
2286
- * @param offset The index in the current array at which the values are to be written.
2287
- */
2288
- set(array: ArrayLike<number>, offset?: number): void;
2289
-
2290
- /**
2291
- * Returns a section of an array.
2292
- * @param start The beginning of the specified portion of the array.
2293
- * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
2294
- */
2295
- slice(start?: number, end?: number): Uint8Array;
2296
-
2297
- /**
2298
- * Determines whether the specified callback function returns true for any element of an array.
2299
- * @param predicate A function that accepts up to three arguments. The some method calls
2300
- * the predicate function for each element in the array until the predicate returns a value
2301
- * which is coercible to the Boolean value true, or until the end of the array.
2302
- * @param thisArg An object to which the this keyword can refer in the predicate function.
2303
- * If thisArg is omitted, undefined is used as the this value.
2304
- */
2305
- some(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;
2306
-
2307
- /**
2308
- * Sorts an array.
2309
- * @param compareFn Function used to determine the order of the elements. It is expected to return
2310
- * a negative value if first argument is less than second argument, zero if they're equal and a positive
2311
- * value otherwise. If omitted, the elements are sorted in ascending order.
2312
- * ```ts
2313
- * [11,2,22,1].sort((a, b) => a - b)
2314
- * ```
2315
- */
2316
- sort(compareFn?: (a: number, b: number) => number): this;
2317
-
2318
- /**
2319
- * Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements
2320
- * at begin, inclusive, up to end, exclusive.
2321
- * @param begin The index of the beginning of the array.
2322
- * @param end The index of the end of the array.
2323
- */
2324
- subarray(begin?: number, end?: number): Uint8Array;
2325
-
2326
- /**
2327
- * Converts a number to a string by using the current locale.
2328
- */
2329
- toLocaleString(): string;
2330
-
2331
- /**
2332
- * Returns a string representation of an array.
2333
- */
2334
- toString(): string;
2335
-
2336
- /** Returns the primitive value of the specified object. */
2337
- valueOf(): Uint8Array;
2338
-
2339
- [index: number]: number;
2340
- }
2341
-
2342
- interface Uint8ArrayConstructor {
2343
- readonly prototype: Uint8Array;
2344
- new(length: number): Uint8Array;
2345
- new(array: ArrayLike<number> | ArrayBufferLike): Uint8Array;
2346
- new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array;
2347
-
2348
- /**
2349
- * The size in bytes of each element in the array.
2350
- */
2351
- readonly BYTES_PER_ELEMENT: number;
2352
-
2353
- /**
2354
- * Returns a new array from a set of elements.
2355
- * @param items A set of elements to include in the new array object.
2356
- */
2357
- of(...items: number[]): Uint8Array;
2358
-
2359
- /**
2360
- * Creates an array from an array-like or iterable object.
2361
- * @param arrayLike An array-like or iterable object to convert to an array.
2362
- */
2363
- from(arrayLike: ArrayLike<number>): Uint8Array;
2364
-
2365
- /**
2366
- * Creates an array from an array-like or iterable object.
2367
- * @param arrayLike An array-like or iterable object to convert to an array.
2368
- * @param mapfn A mapping function to call on every element of the array.
2369
- * @param thisArg Value of 'this' used to invoke the mapfn.
2370
- */
2371
- from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array;
2372
-
2373
- }
2374
- declare var Uint8Array: Uint8ArrayConstructor;
2375
-
2376
- /**
2377
- * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.
2378
- * If the requested number of bytes could not be allocated an exception is raised.
2379
- */
2380
- interface Uint8ClampedArray {
2381
- /**
2382
- * The size in bytes of each element in the array.
2383
- */
2384
- readonly BYTES_PER_ELEMENT: number;
2385
-
2386
- /**
2387
- * The ArrayBuffer instance referenced by the array.
2388
- */
2389
- readonly buffer: ArrayBufferLike;
2390
-
2391
- /**
2392
- * The length in bytes of the array.
2393
- */
2394
- readonly byteLength: number;
2395
-
2396
- /**
2397
- * The offset in bytes of the array.
2398
- */
2399
- readonly byteOffset: number;
2400
-
2401
- /**
2402
- * Returns the this object after copying a section of the array identified by start and end
2403
- * to the same array starting at position target
2404
- * @param target If target is negative, it is treated as length+target where length is the
2405
- * length of the array.
2406
- * @param start If start is negative, it is treated as length+start. If end is negative, it
2407
- * is treated as length+end.
2408
- * @param end If not specified, length of the this object is used as its default value.
2409
- */
2410
- copyWithin(target: number, start: number, end?: number): this;
2411
-
2412
- /**
2413
- * Determines whether all the members of an array satisfy the specified test.
2414
- * @param predicate A function that accepts up to three arguments. The every method calls
2415
- * the predicate function for each element in the array until the predicate returns a value
2416
- * which is coercible to the Boolean value false, or until the end of the array.
2417
- * @param thisArg An object to which the this keyword can refer in the predicate function.
2418
- * If thisArg is omitted, undefined is used as the this value.
2419
- */
2420
- every(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;
2421
-
2422
- /**
2423
- * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
2424
- * @param value value to fill array section with
2425
- * @param start index to start filling the array at. If start is negative, it is treated as
2426
- * length+start where length is the length of the array.
2427
- * @param end index to stop filling the array at. If end is negative, it is treated as
2428
- * length+end.
2429
- */
2430
- fill(value: number, start?: number, end?: number): this;
2431
-
2432
- /**
2433
- * Returns the elements of an array that meet the condition specified in a callback function.
2434
- * @param predicate A function that accepts up to three arguments. The filter method calls
2435
- * the predicate function one time for each element in the array.
2436
- * @param thisArg An object to which the this keyword can refer in the predicate function.
2437
- * If thisArg is omitted, undefined is used as the this value.
2438
- */
2439
- filter(predicate: (value: number, index: number, array: Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;
2440
-
2441
- /**
2442
- * Returns the value of the first element in the array where predicate is true, and undefined
2443
- * otherwise.
2444
- * @param predicate find calls predicate once for each element of the array, in ascending
2445
- * order, until it finds one where predicate returns true. If such an element is found, find
2446
- * immediately returns that element value. Otherwise, find returns undefined.
2447
- * @param thisArg If provided, it will be used as the this value for each invocation of
2448
- * predicate. If it is not provided, undefined is used instead.
2449
- */
2450
- find(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number | undefined;
2451
-
2452
- /**
2453
- * Returns the index of the first element in the array where predicate is true, and -1
2454
- * otherwise.
2455
- * @param predicate find calls predicate once for each element of the array, in ascending
2456
- * order, until it finds one where predicate returns true. If such an element is found,
2457
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
2458
- * @param thisArg If provided, it will be used as the this value for each invocation of
2459
- * predicate. If it is not provided, undefined is used instead.
2460
- */
2461
- findIndex(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number;
2462
-
2463
- /**
2464
- * Performs the specified action for each element in an array.
2465
- * @param callbackfn A function that accepts up to three arguments. forEach calls the
2466
- * callbackfn function one time for each element in the array.
2467
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2468
- * If thisArg is omitted, undefined is used as the this value.
2469
- */
2470
- forEach(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void;
2471
-
2472
- /**
2473
- * Returns the index of the first occurrence of a value in an array.
2474
- * @param searchElement The value to locate in the array.
2475
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2476
- * search starts at index 0.
2477
- */
2478
- indexOf(searchElement: number, fromIndex?: number): number;
2479
-
2480
- /**
2481
- * Adds all the elements of an array separated by the specified separator string.
2482
- * @param separator A string used to separate one element of an array from the next in the
2483
- * resulting String. If omitted, the array elements are separated with a comma.
2484
- */
2485
- join(separator?: string): string;
2486
-
2487
- /**
2488
- * Returns the index of the last occurrence of a value in an array.
2489
- * @param searchElement The value to locate in the array.
2490
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2491
- * search starts at index 0.
2492
- */
2493
- lastIndexOf(searchElement: number, fromIndex?: number): number;
2494
-
2495
- /**
2496
- * The length of the array.
2497
- */
2498
- readonly length: number;
2499
-
2500
- /**
2501
- * Calls a defined callback function on each element of an array, and returns an array that
2502
- * contains the results.
2503
- * @param callbackfn A function that accepts up to three arguments. The map method calls the
2504
- * callbackfn function one time for each element in the array.
2505
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2506
- * If thisArg is omitted, undefined is used as the this value.
2507
- */
2508
- map(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray;
2509
-
2510
- /**
2511
- * Calls the specified callback function for all the elements in an array. The return value of
2512
- * the callback function is the accumulated result, and is provided as an argument in the next
2513
- * call to the callback function.
2514
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
2515
- * callbackfn function one time for each element in the array.
2516
- * @param initialValue If initialValue is specified, it is used as the initial value to start
2517
- * the accumulation. The first call to the callbackfn function provides this value as an argument
2518
- * instead of an array value.
2519
- */
2520
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
2521
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
2522
-
2523
- /**
2524
- * Calls the specified callback function for all the elements in an array. The return value of
2525
- * the callback function is the accumulated result, and is provided as an argument in the next
2526
- * call to the callback function.
2527
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
2528
- * callbackfn function one time for each element in the array.
2529
- * @param initialValue If initialValue is specified, it is used as the initial value to start
2530
- * the accumulation. The first call to the callbackfn function provides this value as an argument
2531
- * instead of an array value.
2532
- */
2533
- reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
2534
-
2535
- /**
2536
- * Calls the specified callback function for all the elements in an array, in descending order.
2537
- * The return value of the callback function is the accumulated result, and is provided as an
2538
- * argument in the next call to the callback function.
2539
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
2540
- * the callbackfn function one time for each element in the array.
2541
- * @param initialValue If initialValue is specified, it is used as the initial value to start
2542
- * the accumulation. The first call to the callbackfn function provides this value as an
2543
- * argument instead of an array value.
2544
- */
2545
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
2546
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
2547
-
2548
- /**
2549
- * Calls the specified callback function for all the elements in an array, in descending order.
2550
- * The return value of the callback function is the accumulated result, and is provided as an
2551
- * argument in the next call to the callback function.
2552
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
2553
- * the callbackfn function one time for each element in the array.
2554
- * @param initialValue If initialValue is specified, it is used as the initial value to start
2555
- * the accumulation. The first call to the callbackfn function provides this value as an argument
2556
- * instead of an array value.
2557
- */
2558
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
2559
-
2560
- /**
2561
- * Reverses the elements in an Array.
2562
- */
2563
- reverse(): Uint8ClampedArray;
2564
-
2565
- /**
2566
- * Sets a value or an array of values.
2567
- * @param array A typed or untyped array of values to set.
2568
- * @param offset The index in the current array at which the values are to be written.
2569
- */
2570
- set(array: ArrayLike<number>, offset?: number): void;
2571
-
2572
- /**
2573
- * Returns a section of an array.
2574
- * @param start The beginning of the specified portion of the array.
2575
- * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
2576
- */
2577
- slice(start?: number, end?: number): Uint8ClampedArray;
2578
-
2579
- /**
2580
- * Determines whether the specified callback function returns true for any element of an array.
2581
- * @param predicate A function that accepts up to three arguments. The some method calls
2582
- * the predicate function for each element in the array until the predicate returns a value
2583
- * which is coercible to the Boolean value true, or until the end of the array.
2584
- * @param thisArg An object to which the this keyword can refer in the predicate function.
2585
- * If thisArg is omitted, undefined is used as the this value.
2586
- */
2587
- some(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;
2588
-
2589
- /**
2590
- * Sorts an array.
2591
- * @param compareFn Function used to determine the order of the elements. It is expected to return
2592
- * a negative value if first argument is less than second argument, zero if they're equal and a positive
2593
- * value otherwise. If omitted, the elements are sorted in ascending order.
2594
- * ```ts
2595
- * [11,2,22,1].sort((a, b) => a - b)
2596
- * ```
2597
- */
2598
- sort(compareFn?: (a: number, b: number) => number): this;
2599
-
2600
- /**
2601
- * Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements
2602
- * at begin, inclusive, up to end, exclusive.
2603
- * @param begin The index of the beginning of the array.
2604
- * @param end The index of the end of the array.
2605
- */
2606
- subarray(begin?: number, end?: number): Uint8ClampedArray;
2607
-
2608
- /**
2609
- * Converts a number to a string by using the current locale.
2610
- */
2611
- toLocaleString(): string;
2612
-
2613
- /**
2614
- * Returns a string representation of an array.
2615
- */
2616
- toString(): string;
2617
-
2618
- /** Returns the primitive value of the specified object. */
2619
- valueOf(): Uint8ClampedArray;
2620
-
2621
- [index: number]: number;
2622
- }
2623
-
2624
- interface Uint8ClampedArrayConstructor {
2625
- readonly prototype: Uint8ClampedArray;
2626
- new(length: number): Uint8ClampedArray;
2627
- new(array: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray;
2628
- new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8ClampedArray;
2629
-
2630
- /**
2631
- * The size in bytes of each element in the array.
2632
- */
2633
- readonly BYTES_PER_ELEMENT: number;
2634
-
2635
- /**
2636
- * Returns a new array from a set of elements.
2637
- * @param items A set of elements to include in the new array object.
2638
- */
2639
- of(...items: number[]): Uint8ClampedArray;
2640
-
2641
- /**
2642
- * Creates an array from an array-like or iterable object.
2643
- * @param arrayLike An array-like or iterable object to convert to an array.
2644
- */
2645
- from(arrayLike: ArrayLike<number>): Uint8ClampedArray;
2646
-
2647
- /**
2648
- * Creates an array from an array-like or iterable object.
2649
- * @param arrayLike An array-like or iterable object to convert to an array.
2650
- * @param mapfn A mapping function to call on every element of the array.
2651
- * @param thisArg Value of 'this' used to invoke the mapfn.
2652
- */
2653
- from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray;
2654
- }
2655
- declare var Uint8ClampedArray: Uint8ClampedArrayConstructor;
2656
-
2657
- /**
2658
- * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the
2659
- * requested number of bytes could not be allocated an exception is raised.
2660
- */
2661
- interface Int16Array {
2662
- /**
2663
- * The size in bytes of each element in the array.
2664
- */
2665
- readonly BYTES_PER_ELEMENT: number;
2666
-
2667
- /**
2668
- * The ArrayBuffer instance referenced by the array.
2669
- */
2670
- readonly buffer: ArrayBufferLike;
2671
-
2672
- /**
2673
- * The length in bytes of the array.
2674
- */
2675
- readonly byteLength: number;
2676
-
2677
- /**
2678
- * The offset in bytes of the array.
2679
- */
2680
- readonly byteOffset: number;
2681
-
2682
- /**
2683
- * Returns the this object after copying a section of the array identified by start and end
2684
- * to the same array starting at position target
2685
- * @param target If target is negative, it is treated as length+target where length is the
2686
- * length of the array.
2687
- * @param start If start is negative, it is treated as length+start. If end is negative, it
2688
- * is treated as length+end.
2689
- * @param end If not specified, length of the this object is used as its default value.
2690
- */
2691
- copyWithin(target: number, start: number, end?: number): this;
2692
-
2693
- /**
2694
- * Determines whether all the members of an array satisfy the specified test.
2695
- * @param predicate A function that accepts up to three arguments. The every method calls
2696
- * the predicate function for each element in the array until the predicate returns a value
2697
- * which is coercible to the Boolean value false, or until the end of the array.
2698
- * @param thisArg An object to which the this keyword can refer in the predicate function.
2699
- * If thisArg is omitted, undefined is used as the this value.
2700
- */
2701
- every(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;
2702
-
2703
- /**
2704
- * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
2705
- * @param value value to fill array section with
2706
- * @param start index to start filling the array at. If start is negative, it is treated as
2707
- * length+start where length is the length of the array.
2708
- * @param end index to stop filling the array at. If end is negative, it is treated as
2709
- * length+end.
2710
- */
2711
- fill(value: number, start?: number, end?: number): this;
2712
-
2713
- /**
2714
- * Returns the elements of an array that meet the condition specified in a callback function.
2715
- * @param predicate A function that accepts up to three arguments. The filter method calls
2716
- * the predicate function one time for each element in the array.
2717
- * @param thisArg An object to which the this keyword can refer in the predicate function.
2718
- * If thisArg is omitted, undefined is used as the this value.
2719
- */
2720
- filter(predicate: (value: number, index: number, array: Int16Array) => any, thisArg?: any): Int16Array;
2721
-
2722
- /**
2723
- * Returns the value of the first element in the array where predicate is true, and undefined
2724
- * otherwise.
2725
- * @param predicate find calls predicate once for each element of the array, in ascending
2726
- * order, until it finds one where predicate returns true. If such an element is found, find
2727
- * immediately returns that element value. Otherwise, find returns undefined.
2728
- * @param thisArg If provided, it will be used as the this value for each invocation of
2729
- * predicate. If it is not provided, undefined is used instead.
2730
- */
2731
- find(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number | undefined;
2732
-
2733
- /**
2734
- * Returns the index of the first element in the array where predicate is true, and -1
2735
- * otherwise.
2736
- * @param predicate find calls predicate once for each element of the array, in ascending
2737
- * order, until it finds one where predicate returns true. If such an element is found,
2738
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
2739
- * @param thisArg If provided, it will be used as the this value for each invocation of
2740
- * predicate. If it is not provided, undefined is used instead.
2741
- */
2742
- findIndex(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number;
2743
-
2744
- /**
2745
- * Performs the specified action for each element in an array.
2746
- * @param callbackfn A function that accepts up to three arguments. forEach calls the
2747
- * callbackfn function one time for each element in the array.
2748
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2749
- * If thisArg is omitted, undefined is used as the this value.
2750
- */
2751
- forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void;
2752
- /**
2753
- * Returns the index of the first occurrence of a value in an array.
2754
- * @param searchElement The value to locate in the array.
2755
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2756
- * search starts at index 0.
2757
- */
2758
- indexOf(searchElement: number, fromIndex?: number): number;
2759
-
2760
- /**
2761
- * Adds all the elements of an array separated by the specified separator string.
2762
- * @param separator A string used to separate one element of an array from the next in the
2763
- * resulting String. If omitted, the array elements are separated with a comma.
2764
- */
2765
- join(separator?: string): string;
2766
-
2767
- /**
2768
- * Returns the index of the last occurrence of a value in an array.
2769
- * @param searchElement The value to locate in the array.
2770
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2771
- * search starts at index 0.
2772
- */
2773
- lastIndexOf(searchElement: number, fromIndex?: number): number;
2774
-
2775
- /**
2776
- * The length of the array.
2777
- */
2778
- readonly length: number;
2779
-
2780
- /**
2781
- * Calls a defined callback function on each element of an array, and returns an array that
2782
- * contains the results.
2783
- * @param callbackfn A function that accepts up to three arguments. The map method calls the
2784
- * callbackfn function one time for each element in the array.
2785
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2786
- * If thisArg is omitted, undefined is used as the this value.
2787
- */
2788
- map(callbackfn: (value: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array;
2789
-
2790
- /**
2791
- * Calls the specified callback function for all the elements in an array. The return value of
2792
- * the callback function is the accumulated result, and is provided as an argument in the next
2793
- * call to the callback function.
2794
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
2795
- * callbackfn function one time for each element in the array.
2796
- * @param initialValue If initialValue is specified, it is used as the initial value to start
2797
- * the accumulation. The first call to the callbackfn function provides this value as an argument
2798
- * instead of an array value.
2799
- */
2800
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
2801
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
2802
-
2803
- /**
2804
- * Calls the specified callback function for all the elements in an array. The return value of
2805
- * the callback function is the accumulated result, and is provided as an argument in the next
2806
- * call to the callback function.
2807
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
2808
- * callbackfn function one time for each element in the array.
2809
- * @param initialValue If initialValue is specified, it is used as the initial value to start
2810
- * the accumulation. The first call to the callbackfn function provides this value as an argument
2811
- * instead of an array value.
2812
- */
2813
- reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
2814
-
2815
- /**
2816
- * Calls the specified callback function for all the elements in an array, in descending order.
2817
- * The return value of the callback function is the accumulated result, and is provided as an
2818
- * argument in the next call to the callback function.
2819
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
2820
- * the callbackfn function one time for each element in the array.
2821
- * @param initialValue If initialValue is specified, it is used as the initial value to start
2822
- * the accumulation. The first call to the callbackfn function provides this value as an
2823
- * argument instead of an array value.
2824
- */
2825
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
2826
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
2827
-
2828
- /**
2829
- * Calls the specified callback function for all the elements in an array, in descending order.
2830
- * The return value of the callback function is the accumulated result, and is provided as an
2831
- * argument in the next call to the callback function.
2832
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
2833
- * the callbackfn function one time for each element in the array.
2834
- * @param initialValue If initialValue is specified, it is used as the initial value to start
2835
- * the accumulation. The first call to the callbackfn function provides this value as an argument
2836
- * instead of an array value.
2837
- */
2838
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
2839
-
2840
- /**
2841
- * Reverses the elements in an Array.
2842
- */
2843
- reverse(): Int16Array;
2844
-
2845
- /**
2846
- * Sets a value or an array of values.
2847
- * @param array A typed or untyped array of values to set.
2848
- * @param offset The index in the current array at which the values are to be written.
2849
- */
2850
- set(array: ArrayLike<number>, offset?: number): void;
2851
-
2852
- /**
2853
- * Returns a section of an array.
2854
- * @param start The beginning of the specified portion of the array.
2855
- * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
2856
- */
2857
- slice(start?: number, end?: number): Int16Array;
2858
-
2859
- /**
2860
- * Determines whether the specified callback function returns true for any element of an array.
2861
- * @param predicate A function that accepts up to three arguments. The some method calls
2862
- * the predicate function for each element in the array until the predicate returns a value
2863
- * which is coercible to the Boolean value true, or until the end of the array.
2864
- * @param thisArg An object to which the this keyword can refer in the predicate function.
2865
- * If thisArg is omitted, undefined is used as the this value.
2866
- */
2867
- some(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;
2868
-
2869
- /**
2870
- * Sorts an array.
2871
- * @param compareFn Function used to determine the order of the elements. It is expected to return
2872
- * a negative value if first argument is less than second argument, zero if they're equal and a positive
2873
- * value otherwise. If omitted, the elements are sorted in ascending order.
2874
- * ```ts
2875
- * [11,2,22,1].sort((a, b) => a - b)
2876
- * ```
2877
- */
2878
- sort(compareFn?: (a: number, b: number) => number): this;
2879
-
2880
- /**
2881
- * Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements
2882
- * at begin, inclusive, up to end, exclusive.
2883
- * @param begin The index of the beginning of the array.
2884
- * @param end The index of the end of the array.
2885
- */
2886
- subarray(begin?: number, end?: number): Int16Array;
2887
-
2888
- /**
2889
- * Converts a number to a string by using the current locale.
2890
- */
2891
- toLocaleString(): string;
2892
-
2893
- /**
2894
- * Returns a string representation of an array.
2895
- */
2896
- toString(): string;
2897
-
2898
- /** Returns the primitive value of the specified object. */
2899
- valueOf(): Int16Array;
2900
-
2901
- [index: number]: number;
2902
- }
2903
-
2904
- interface Int16ArrayConstructor {
2905
- readonly prototype: Int16Array;
2906
- new(length: number): Int16Array;
2907
- new(array: ArrayLike<number> | ArrayBufferLike): Int16Array;
2908
- new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int16Array;
2909
-
2910
- /**
2911
- * The size in bytes of each element in the array.
2912
- */
2913
- readonly BYTES_PER_ELEMENT: number;
2914
-
2915
- /**
2916
- * Returns a new array from a set of elements.
2917
- * @param items A set of elements to include in the new array object.
2918
- */
2919
- of(...items: number[]): Int16Array;
2920
-
2921
- /**
2922
- * Creates an array from an array-like or iterable object.
2923
- * @param arrayLike An array-like or iterable object to convert to an array.
2924
- */
2925
- from(arrayLike: ArrayLike<number>): Int16Array;
2926
-
2927
- /**
2928
- * Creates an array from an array-like or iterable object.
2929
- * @param arrayLike An array-like or iterable object to convert to an array.
2930
- * @param mapfn A mapping function to call on every element of the array.
2931
- * @param thisArg Value of 'this' used to invoke the mapfn.
2932
- */
2933
- from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array;
2934
-
2935
-
2936
- }
2937
- declare var Int16Array: Int16ArrayConstructor;
2938
-
2939
- /**
2940
- * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the
2941
- * requested number of bytes could not be allocated an exception is raised.
2942
- */
2943
- interface Uint16Array {
2944
- /**
2945
- * The size in bytes of each element in the array.
2946
- */
2947
- readonly BYTES_PER_ELEMENT: number;
2948
-
2949
- /**
2950
- * The ArrayBuffer instance referenced by the array.
2951
- */
2952
- readonly buffer: ArrayBufferLike;
2953
-
2954
- /**
2955
- * The length in bytes of the array.
2956
- */
2957
- readonly byteLength: number;
2958
-
2959
- /**
2960
- * The offset in bytes of the array.
2961
- */
2962
- readonly byteOffset: number;
2963
-
2964
- /**
2965
- * Returns the this object after copying a section of the array identified by start and end
2966
- * to the same array starting at position target
2967
- * @param target If target is negative, it is treated as length+target where length is the
2968
- * length of the array.
2969
- * @param start If start is negative, it is treated as length+start. If end is negative, it
2970
- * is treated as length+end.
2971
- * @param end If not specified, length of the this object is used as its default value.
2972
- */
2973
- copyWithin(target: number, start: number, end?: number): this;
2974
-
2975
- /**
2976
- * Determines whether all the members of an array satisfy the specified test.
2977
- * @param predicate A function that accepts up to three arguments. The every method calls
2978
- * the predicate function for each element in the array until the predicate returns a value
2979
- * which is coercible to the Boolean value false, or until the end of the array.
2980
- * @param thisArg An object to which the this keyword can refer in the predicate function.
2981
- * If thisArg is omitted, undefined is used as the this value.
2982
- */
2983
- every(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;
2984
-
2985
- /**
2986
- * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
2987
- * @param value value to fill array section with
2988
- * @param start index to start filling the array at. If start is negative, it is treated as
2989
- * length+start where length is the length of the array.
2990
- * @param end index to stop filling the array at. If end is negative, it is treated as
2991
- * length+end.
2992
- */
2993
- fill(value: number, start?: number, end?: number): this;
2994
-
2995
- /**
2996
- * Returns the elements of an array that meet the condition specified in a callback function.
2997
- * @param predicate A function that accepts up to three arguments. The filter method calls
2998
- * the predicate function one time for each element in the array.
2999
- * @param thisArg An object to which the this keyword can refer in the predicate function.
3000
- * If thisArg is omitted, undefined is used as the this value.
3001
- */
3002
- filter(predicate: (value: number, index: number, array: Uint16Array) => any, thisArg?: any): Uint16Array;
3003
-
3004
- /**
3005
- * Returns the value of the first element in the array where predicate is true, and undefined
3006
- * otherwise.
3007
- * @param predicate find calls predicate once for each element of the array, in ascending
3008
- * order, until it finds one where predicate returns true. If such an element is found, find
3009
- * immediately returns that element value. Otherwise, find returns undefined.
3010
- * @param thisArg If provided, it will be used as the this value for each invocation of
3011
- * predicate. If it is not provided, undefined is used instead.
3012
- */
3013
- find(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number | undefined;
3014
-
3015
- /**
3016
- * Returns the index of the first element in the array where predicate is true, and -1
3017
- * otherwise.
3018
- * @param predicate find calls predicate once for each element of the array, in ascending
3019
- * order, until it finds one where predicate returns true. If such an element is found,
3020
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
3021
- * @param thisArg If provided, it will be used as the this value for each invocation of
3022
- * predicate. If it is not provided, undefined is used instead.
3023
- */
3024
- findIndex(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number;
3025
-
3026
- /**
3027
- * Performs the specified action for each element in an array.
3028
- * @param callbackfn A function that accepts up to three arguments. forEach calls the
3029
- * callbackfn function one time for each element in the array.
3030
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3031
- * If thisArg is omitted, undefined is used as the this value.
3032
- */
3033
- forEach(callbackfn: (value: number, index: number, array: Uint16Array) => void, thisArg?: any): void;
3034
-
3035
- /**
3036
- * Returns the index of the first occurrence of a value in an array.
3037
- * @param searchElement The value to locate in the array.
3038
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3039
- * search starts at index 0.
3040
- */
3041
- indexOf(searchElement: number, fromIndex?: number): number;
3042
-
3043
- /**
3044
- * Adds all the elements of an array separated by the specified separator string.
3045
- * @param separator A string used to separate one element of an array from the next in the
3046
- * resulting String. If omitted, the array elements are separated with a comma.
3047
- */
3048
- join(separator?: string): string;
3049
-
3050
- /**
3051
- * Returns the index of the last occurrence of a value in an array.
3052
- * @param searchElement The value to locate in the array.
3053
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3054
- * search starts at index 0.
3055
- */
3056
- lastIndexOf(searchElement: number, fromIndex?: number): number;
3057
-
3058
- /**
3059
- * The length of the array.
3060
- */
3061
- readonly length: number;
3062
-
3063
- /**
3064
- * Calls a defined callback function on each element of an array, and returns an array that
3065
- * contains the results.
3066
- * @param callbackfn A function that accepts up to three arguments. The map method calls the
3067
- * callbackfn function one time for each element in the array.
3068
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3069
- * If thisArg is omitted, undefined is used as the this value.
3070
- */
3071
- map(callbackfn: (value: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array;
3072
-
3073
- /**
3074
- * Calls the specified callback function for all the elements in an array. The return value of
3075
- * the callback function is the accumulated result, and is provided as an argument in the next
3076
- * call to the callback function.
3077
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3078
- * callbackfn function one time for each element in the array.
3079
- * @param initialValue If initialValue is specified, it is used as the initial value to start
3080
- * the accumulation. The first call to the callbackfn function provides this value as an argument
3081
- * instead of an array value.
3082
- */
3083
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
3084
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
3085
-
3086
- /**
3087
- * Calls the specified callback function for all the elements in an array. The return value of
3088
- * the callback function is the accumulated result, and is provided as an argument in the next
3089
- * call to the callback function.
3090
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3091
- * callbackfn function one time for each element in the array.
3092
- * @param initialValue If initialValue is specified, it is used as the initial value to start
3093
- * the accumulation. The first call to the callbackfn function provides this value as an argument
3094
- * instead of an array value.
3095
- */
3096
- reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
3097
-
3098
- /**
3099
- * Calls the specified callback function for all the elements in an array, in descending order.
3100
- * The return value of the callback function is the accumulated result, and is provided as an
3101
- * argument in the next call to the callback function.
3102
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3103
- * the callbackfn function one time for each element in the array.
3104
- * @param initialValue If initialValue is specified, it is used as the initial value to start
3105
- * the accumulation. The first call to the callbackfn function provides this value as an
3106
- * argument instead of an array value.
3107
- */
3108
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
3109
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
3110
-
3111
- /**
3112
- * Calls the specified callback function for all the elements in an array, in descending order.
3113
- * The return value of the callback function is the accumulated result, and is provided as an
3114
- * argument in the next call to the callback function.
3115
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3116
- * the callbackfn function one time for each element in the array.
3117
- * @param initialValue If initialValue is specified, it is used as the initial value to start
3118
- * the accumulation. The first call to the callbackfn function provides this value as an argument
3119
- * instead of an array value.
3120
- */
3121
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
3122
-
3123
- /**
3124
- * Reverses the elements in an Array.
3125
- */
3126
- reverse(): Uint16Array;
3127
-
3128
- /**
3129
- * Sets a value or an array of values.
3130
- * @param array A typed or untyped array of values to set.
3131
- * @param offset The index in the current array at which the values are to be written.
3132
- */
3133
- set(array: ArrayLike<number>, offset?: number): void;
3134
-
3135
- /**
3136
- * Returns a section of an array.
3137
- * @param start The beginning of the specified portion of the array.
3138
- * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
3139
- */
3140
- slice(start?: number, end?: number): Uint16Array;
3141
-
3142
- /**
3143
- * Determines whether the specified callback function returns true for any element of an array.
3144
- * @param predicate A function that accepts up to three arguments. The some method calls
3145
- * the predicate function for each element in the array until the predicate returns a value
3146
- * which is coercible to the Boolean value true, or until the end of the array.
3147
- * @param thisArg An object to which the this keyword can refer in the predicate function.
3148
- * If thisArg is omitted, undefined is used as the this value.
3149
- */
3150
- some(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;
3151
-
3152
- /**
3153
- * Sorts an array.
3154
- * @param compareFn Function used to determine the order of the elements. It is expected to return
3155
- * a negative value if first argument is less than second argument, zero if they're equal and a positive
3156
- * value otherwise. If omitted, the elements are sorted in ascending order.
3157
- * ```ts
3158
- * [11,2,22,1].sort((a, b) => a - b)
3159
- * ```
3160
- */
3161
- sort(compareFn?: (a: number, b: number) => number): this;
3162
-
3163
- /**
3164
- * Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements
3165
- * at begin, inclusive, up to end, exclusive.
3166
- * @param begin The index of the beginning of the array.
3167
- * @param end The index of the end of the array.
3168
- */
3169
- subarray(begin?: number, end?: number): Uint16Array;
3170
-
3171
- /**
3172
- * Converts a number to a string by using the current locale.
3173
- */
3174
- toLocaleString(): string;
3175
-
3176
- /**
3177
- * Returns a string representation of an array.
3178
- */
3179
- toString(): string;
3180
-
3181
- /** Returns the primitive value of the specified object. */
3182
- valueOf(): Uint16Array;
3183
-
3184
- [index: number]: number;
3185
- }
3186
-
3187
- interface Uint16ArrayConstructor {
3188
- readonly prototype: Uint16Array;
3189
- new(length: number): Uint16Array;
3190
- new(array: ArrayLike<number> | ArrayBufferLike): Uint16Array;
3191
- new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint16Array;
3192
-
3193
- /**
3194
- * The size in bytes of each element in the array.
3195
- */
3196
- readonly BYTES_PER_ELEMENT: number;
3197
-
3198
- /**
3199
- * Returns a new array from a set of elements.
3200
- * @param items A set of elements to include in the new array object.
3201
- */
3202
- of(...items: number[]): Uint16Array;
3203
-
3204
- /**
3205
- * Creates an array from an array-like or iterable object.
3206
- * @param arrayLike An array-like or iterable object to convert to an array.
3207
- */
3208
- from(arrayLike: ArrayLike<number>): Uint16Array;
3209
-
3210
- /**
3211
- * Creates an array from an array-like or iterable object.
3212
- * @param arrayLike An array-like or iterable object to convert to an array.
3213
- * @param mapfn A mapping function to call on every element of the array.
3214
- * @param thisArg Value of 'this' used to invoke the mapfn.
3215
- */
3216
- from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array;
3217
-
3218
-
3219
- }
3220
- declare var Uint16Array: Uint16ArrayConstructor;
3221
- /**
3222
- * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the
3223
- * requested number of bytes could not be allocated an exception is raised.
3224
- */
3225
- interface Int32Array {
3226
- /**
3227
- * The size in bytes of each element in the array.
3228
- */
3229
- readonly BYTES_PER_ELEMENT: number;
3230
-
3231
- /**
3232
- * The ArrayBuffer instance referenced by the array.
3233
- */
3234
- readonly buffer: ArrayBufferLike;
3235
-
3236
- /**
3237
- * The length in bytes of the array.
3238
- */
3239
- readonly byteLength: number;
3240
-
3241
- /**
3242
- * The offset in bytes of the array.
3243
- */
3244
- readonly byteOffset: number;
3245
-
3246
- /**
3247
- * Returns the this object after copying a section of the array identified by start and end
3248
- * to the same array starting at position target
3249
- * @param target If target is negative, it is treated as length+target where length is the
3250
- * length of the array.
3251
- * @param start If start is negative, it is treated as length+start. If end is negative, it
3252
- * is treated as length+end.
3253
- * @param end If not specified, length of the this object is used as its default value.
3254
- */
3255
- copyWithin(target: number, start: number, end?: number): this;
3256
-
3257
- /**
3258
- * Determines whether all the members of an array satisfy the specified test.
3259
- * @param predicate A function that accepts up to three arguments. The every method calls
3260
- * the predicate function for each element in the array until the predicate returns a value
3261
- * which is coercible to the Boolean value false, or until the end of the array.
3262
- * @param thisArg An object to which the this keyword can refer in the predicate function.
3263
- * If thisArg is omitted, undefined is used as the this value.
3264
- */
3265
- every(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;
3266
-
3267
- /**
3268
- * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
3269
- * @param value value to fill array section with
3270
- * @param start index to start filling the array at. If start is negative, it is treated as
3271
- * length+start where length is the length of the array.
3272
- * @param end index to stop filling the array at. If end is negative, it is treated as
3273
- * length+end.
3274
- */
3275
- fill(value: number, start?: number, end?: number): this;
3276
-
3277
- /**
3278
- * Returns the elements of an array that meet the condition specified in a callback function.
3279
- * @param predicate A function that accepts up to three arguments. The filter method calls
3280
- * the predicate function one time for each element in the array.
3281
- * @param thisArg An object to which the this keyword can refer in the predicate function.
3282
- * If thisArg is omitted, undefined is used as the this value.
3283
- */
3284
- filter(predicate: (value: number, index: number, array: Int32Array) => any, thisArg?: any): Int32Array;
3285
-
3286
- /**
3287
- * Returns the value of the first element in the array where predicate is true, and undefined
3288
- * otherwise.
3289
- * @param predicate find calls predicate once for each element of the array, in ascending
3290
- * order, until it finds one where predicate returns true. If such an element is found, find
3291
- * immediately returns that element value. Otherwise, find returns undefined.
3292
- * @param thisArg If provided, it will be used as the this value for each invocation of
3293
- * predicate. If it is not provided, undefined is used instead.
3294
- */
3295
- find(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number | undefined;
3296
-
3297
- /**
3298
- * Returns the index of the first element in the array where predicate is true, and -1
3299
- * otherwise.
3300
- * @param predicate find calls predicate once for each element of the array, in ascending
3301
- * order, until it finds one where predicate returns true. If such an element is found,
3302
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
3303
- * @param thisArg If provided, it will be used as the this value for each invocation of
3304
- * predicate. If it is not provided, undefined is used instead.
3305
- */
3306
- findIndex(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number;
3307
-
3308
- /**
3309
- * Performs the specified action for each element in an array.
3310
- * @param callbackfn A function that accepts up to three arguments. forEach calls the
3311
- * callbackfn function one time for each element in the array.
3312
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3313
- * If thisArg is omitted, undefined is used as the this value.
3314
- */
3315
- forEach(callbackfn: (value: number, index: number, array: Int32Array) => void, thisArg?: any): void;
3316
-
3317
- /**
3318
- * Returns the index of the first occurrence of a value in an array.
3319
- * @param searchElement The value to locate in the array.
3320
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3321
- * search starts at index 0.
3322
- */
3323
- indexOf(searchElement: number, fromIndex?: number): number;
3324
-
3325
- /**
3326
- * Adds all the elements of an array separated by the specified separator string.
3327
- * @param separator A string used to separate one element of an array from the next in the
3328
- * resulting String. If omitted, the array elements are separated with a comma.
3329
- */
3330
- join(separator?: string): string;
3331
-
3332
- /**
3333
- * Returns the index of the last occurrence of a value in an array.
3334
- * @param searchElement The value to locate in the array.
3335
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3336
- * search starts at index 0.
3337
- */
3338
- lastIndexOf(searchElement: number, fromIndex?: number): number;
3339
-
3340
- /**
3341
- * The length of the array.
3342
- */
3343
- readonly length: number;
3344
-
3345
- /**
3346
- * Calls a defined callback function on each element of an array, and returns an array that
3347
- * contains the results.
3348
- * @param callbackfn A function that accepts up to three arguments. The map method calls the
3349
- * callbackfn function one time for each element in the array.
3350
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3351
- * If thisArg is omitted, undefined is used as the this value.
3352
- */
3353
- map(callbackfn: (value: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array;
3354
-
3355
- /**
3356
- * Calls the specified callback function for all the elements in an array. The return value of
3357
- * the callback function is the accumulated result, and is provided as an argument in the next
3358
- * call to the callback function.
3359
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3360
- * callbackfn function one time for each element in the array.
3361
- * @param initialValue If initialValue is specified, it is used as the initial value to start
3362
- * the accumulation. The first call to the callbackfn function provides this value as an argument
3363
- * instead of an array value.
3364
- */
3365
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
3366
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
3367
-
3368
- /**
3369
- * Calls the specified callback function for all the elements in an array. The return value of
3370
- * the callback function is the accumulated result, and is provided as an argument in the next
3371
- * call to the callback function.
3372
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3373
- * callbackfn function one time for each element in the array.
3374
- * @param initialValue If initialValue is specified, it is used as the initial value to start
3375
- * the accumulation. The first call to the callbackfn function provides this value as an argument
3376
- * instead of an array value.
3377
- */
3378
- reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
3379
-
3380
- /**
3381
- * Calls the specified callback function for all the elements in an array, in descending order.
3382
- * The return value of the callback function is the accumulated result, and is provided as an
3383
- * argument in the next call to the callback function.
3384
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3385
- * the callbackfn function one time for each element in the array.
3386
- * @param initialValue If initialValue is specified, it is used as the initial value to start
3387
- * the accumulation. The first call to the callbackfn function provides this value as an
3388
- * argument instead of an array value.
3389
- */
3390
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
3391
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
3392
-
3393
- /**
3394
- * Calls the specified callback function for all the elements in an array, in descending order.
3395
- * The return value of the callback function is the accumulated result, and is provided as an
3396
- * argument in the next call to the callback function.
3397
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3398
- * the callbackfn function one time for each element in the array.
3399
- * @param initialValue If initialValue is specified, it is used as the initial value to start
3400
- * the accumulation. The first call to the callbackfn function provides this value as an argument
3401
- * instead of an array value.
3402
- */
3403
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
3404
-
3405
- /**
3406
- * Reverses the elements in an Array.
3407
- */
3408
- reverse(): Int32Array;
3409
-
3410
- /**
3411
- * Sets a value or an array of values.
3412
- * @param array A typed or untyped array of values to set.
3413
- * @param offset The index in the current array at which the values are to be written.
3414
- */
3415
- set(array: ArrayLike<number>, offset?: number): void;
3416
-
3417
- /**
3418
- * Returns a section of an array.
3419
- * @param start The beginning of the specified portion of the array.
3420
- * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
3421
- */
3422
- slice(start?: number, end?: number): Int32Array;
3423
-
3424
- /**
3425
- * Determines whether the specified callback function returns true for any element of an array.
3426
- * @param predicate A function that accepts up to three arguments. The some method calls
3427
- * the predicate function for each element in the array until the predicate returns a value
3428
- * which is coercible to the Boolean value true, or until the end of the array.
3429
- * @param thisArg An object to which the this keyword can refer in the predicate function.
3430
- * If thisArg is omitted, undefined is used as the this value.
3431
- */
3432
- some(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;
3433
-
3434
- /**
3435
- * Sorts an array.
3436
- * @param compareFn Function used to determine the order of the elements. It is expected to return
3437
- * a negative value if first argument is less than second argument, zero if they're equal and a positive
3438
- * value otherwise. If omitted, the elements are sorted in ascending order.
3439
- * ```ts
3440
- * [11,2,22,1].sort((a, b) => a - b)
3441
- * ```
3442
- */
3443
- sort(compareFn?: (a: number, b: number) => number): this;
3444
-
3445
- /**
3446
- * Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements
3447
- * at begin, inclusive, up to end, exclusive.
3448
- * @param begin The index of the beginning of the array.
3449
- * @param end The index of the end of the array.
3450
- */
3451
- subarray(begin?: number, end?: number): Int32Array;
3452
-
3453
- /**
3454
- * Converts a number to a string by using the current locale.
3455
- */
3456
- toLocaleString(): string;
3457
-
3458
- /**
3459
- * Returns a string representation of an array.
3460
- */
3461
- toString(): string;
3462
-
3463
- /** Returns the primitive value of the specified object. */
3464
- valueOf(): Int32Array;
3465
-
3466
- [index: number]: number;
3467
- }
3468
-
3469
- interface Int32ArrayConstructor {
3470
- readonly prototype: Int32Array;
3471
- new(length: number): Int32Array;
3472
- new(array: ArrayLike<number> | ArrayBufferLike): Int32Array;
3473
- new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int32Array;
3474
-
3475
- /**
3476
- * The size in bytes of each element in the array.
3477
- */
3478
- readonly BYTES_PER_ELEMENT: number;
3479
-
3480
- /**
3481
- * Returns a new array from a set of elements.
3482
- * @param items A set of elements to include in the new array object.
3483
- */
3484
- of(...items: number[]): Int32Array;
3485
-
3486
- /**
3487
- * Creates an array from an array-like or iterable object.
3488
- * @param arrayLike An array-like or iterable object to convert to an array.
3489
- */
3490
- from(arrayLike: ArrayLike<number>): Int32Array;
3491
-
3492
- /**
3493
- * Creates an array from an array-like or iterable object.
3494
- * @param arrayLike An array-like or iterable object to convert to an array.
3495
- * @param mapfn A mapping function to call on every element of the array.
3496
- * @param thisArg Value of 'this' used to invoke the mapfn.
3497
- */
3498
- from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array;
3499
-
3500
- }
3501
- declare var Int32Array: Int32ArrayConstructor;
3502
-
3503
- /**
3504
- * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the
3505
- * requested number of bytes could not be allocated an exception is raised.
3506
- */
3507
- interface Uint32Array {
3508
- /**
3509
- * The size in bytes of each element in the array.
3510
- */
3511
- readonly BYTES_PER_ELEMENT: number;
3512
-
3513
- /**
3514
- * The ArrayBuffer instance referenced by the array.
3515
- */
3516
- readonly buffer: ArrayBufferLike;
3517
-
3518
- /**
3519
- * The length in bytes of the array.
3520
- */
3521
- readonly byteLength: number;
3522
-
3523
- /**
3524
- * The offset in bytes of the array.
3525
- */
3526
- readonly byteOffset: number;
3527
-
3528
- /**
3529
- * Returns the this object after copying a section of the array identified by start and end
3530
- * to the same array starting at position target
3531
- * @param target If target is negative, it is treated as length+target where length is the
3532
- * length of the array.
3533
- * @param start If start is negative, it is treated as length+start. If end is negative, it
3534
- * is treated as length+end.
3535
- * @param end If not specified, length of the this object is used as its default value.
3536
- */
3537
- copyWithin(target: number, start: number, end?: number): this;
3538
-
3539
- /**
3540
- * Determines whether all the members of an array satisfy the specified test.
3541
- * @param predicate A function that accepts up to three arguments. The every method calls
3542
- * the predicate function for each element in the array until the predicate returns a value
3543
- * which is coercible to the Boolean value false, or until the end of the array.
3544
- * @param thisArg An object to which the this keyword can refer in the predicate function.
3545
- * If thisArg is omitted, undefined is used as the this value.
3546
- */
3547
- every(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;
3548
-
3549
- /**
3550
- * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
3551
- * @param value value to fill array section with
3552
- * @param start index to start filling the array at. If start is negative, it is treated as
3553
- * length+start where length is the length of the array.
3554
- * @param end index to stop filling the array at. If end is negative, it is treated as
3555
- * length+end.
3556
- */
3557
- fill(value: number, start?: number, end?: number): this;
3558
-
3559
- /**
3560
- * Returns the elements of an array that meet the condition specified in a callback function.
3561
- * @param predicate A function that accepts up to three arguments. The filter method calls
3562
- * the predicate function one time for each element in the array.
3563
- * @param thisArg An object to which the this keyword can refer in the predicate function.
3564
- * If thisArg is omitted, undefined is used as the this value.
3565
- */
3566
- filter(predicate: (value: number, index: number, array: Uint32Array) => any, thisArg?: any): Uint32Array;
3567
-
3568
- /**
3569
- * Returns the value of the first element in the array where predicate is true, and undefined
3570
- * otherwise.
3571
- * @param predicate find calls predicate once for each element of the array, in ascending
3572
- * order, until it finds one where predicate returns true. If such an element is found, find
3573
- * immediately returns that element value. Otherwise, find returns undefined.
3574
- * @param thisArg If provided, it will be used as the this value for each invocation of
3575
- * predicate. If it is not provided, undefined is used instead.
3576
- */
3577
- find(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number | undefined;
3578
-
3579
- /**
3580
- * Returns the index of the first element in the array where predicate is true, and -1
3581
- * otherwise.
3582
- * @param predicate find calls predicate once for each element of the array, in ascending
3583
- * order, until it finds one where predicate returns true. If such an element is found,
3584
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
3585
- * @param thisArg If provided, it will be used as the this value for each invocation of
3586
- * predicate. If it is not provided, undefined is used instead.
3587
- */
3588
- findIndex(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number;
3589
-
3590
- /**
3591
- * Performs the specified action for each element in an array.
3592
- * @param callbackfn A function that accepts up to three arguments. forEach calls the
3593
- * callbackfn function one time for each element in the array.
3594
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3595
- * If thisArg is omitted, undefined is used as the this value.
3596
- */
3597
- forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void;
3598
- /**
3599
- * Returns the index of the first occurrence of a value in an array.
3600
- * @param searchElement The value to locate in the array.
3601
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3602
- * search starts at index 0.
3603
- */
3604
- indexOf(searchElement: number, fromIndex?: number): number;
3605
-
3606
- /**
3607
- * Adds all the elements of an array separated by the specified separator string.
3608
- * @param separator A string used to separate one element of an array from the next in the
3609
- * resulting String. If omitted, the array elements are separated with a comma.
3610
- */
3611
- join(separator?: string): string;
3612
-
3613
- /**
3614
- * Returns the index of the last occurrence of a value in an array.
3615
- * @param searchElement The value to locate in the array.
3616
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3617
- * search starts at index 0.
3618
- */
3619
- lastIndexOf(searchElement: number, fromIndex?: number): number;
3620
-
3621
- /**
3622
- * The length of the array.
3623
- */
3624
- readonly length: number;
3625
-
3626
- /**
3627
- * Calls a defined callback function on each element of an array, and returns an array that
3628
- * contains the results.
3629
- * @param callbackfn A function that accepts up to three arguments. The map method calls the
3630
- * callbackfn function one time for each element in the array.
3631
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3632
- * If thisArg is omitted, undefined is used as the this value.
3633
- */
3634
- map(callbackfn: (value: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array;
3635
-
3636
- /**
3637
- * Calls the specified callback function for all the elements in an array. The return value of
3638
- * the callback function is the accumulated result, and is provided as an argument in the next
3639
- * call to the callback function.
3640
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3641
- * callbackfn function one time for each element in the array.
3642
- * @param initialValue If initialValue is specified, it is used as the initial value to start
3643
- * the accumulation. The first call to the callbackfn function provides this value as an argument
3644
- * instead of an array value.
3645
- */
3646
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
3647
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
3648
-
3649
- /**
3650
- * Calls the specified callback function for all the elements in an array. The return value of
3651
- * the callback function is the accumulated result, and is provided as an argument in the next
3652
- * call to the callback function.
3653
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3654
- * callbackfn function one time for each element in the array.
3655
- * @param initialValue If initialValue is specified, it is used as the initial value to start
3656
- * the accumulation. The first call to the callbackfn function provides this value as an argument
3657
- * instead of an array value.
3658
- */
3659
- reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
3660
-
3661
- /**
3662
- * Calls the specified callback function for all the elements in an array, in descending order.
3663
- * The return value of the callback function is the accumulated result, and is provided as an
3664
- * argument in the next call to the callback function.
3665
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3666
- * the callbackfn function one time for each element in the array.
3667
- * @param initialValue If initialValue is specified, it is used as the initial value to start
3668
- * the accumulation. The first call to the callbackfn function provides this value as an
3669
- * argument instead of an array value.
3670
- */
3671
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
3672
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
3673
-
3674
- /**
3675
- * Calls the specified callback function for all the elements in an array, in descending order.
3676
- * The return value of the callback function is the accumulated result, and is provided as an
3677
- * argument in the next call to the callback function.
3678
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3679
- * the callbackfn function one time for each element in the array.
3680
- * @param initialValue If initialValue is specified, it is used as the initial value to start
3681
- * the accumulation. The first call to the callbackfn function provides this value as an argument
3682
- * instead of an array value.
3683
- */
3684
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
3685
-
3686
- /**
3687
- * Reverses the elements in an Array.
3688
- */
3689
- reverse(): Uint32Array;
3690
-
3691
- /**
3692
- * Sets a value or an array of values.
3693
- * @param array A typed or untyped array of values to set.
3694
- * @param offset The index in the current array at which the values are to be written.
3695
- */
3696
- set(array: ArrayLike<number>, offset?: number): void;
3697
-
3698
- /**
3699
- * Returns a section of an array.
3700
- * @param start The beginning of the specified portion of the array.
3701
- * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
3702
- */
3703
- slice(start?: number, end?: number): Uint32Array;
3704
-
3705
- /**
3706
- * Determines whether the specified callback function returns true for any element of an array.
3707
- * @param predicate A function that accepts up to three arguments. The some method calls
3708
- * the predicate function for each element in the array until the predicate returns a value
3709
- * which is coercible to the Boolean value true, or until the end of the array.
3710
- * @param thisArg An object to which the this keyword can refer in the predicate function.
3711
- * If thisArg is omitted, undefined is used as the this value.
3712
- */
3713
- some(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;
3714
-
3715
- /**
3716
- * Sorts an array.
3717
- * @param compareFn Function used to determine the order of the elements. It is expected to return
3718
- * a negative value if first argument is less than second argument, zero if they're equal and a positive
3719
- * value otherwise. If omitted, the elements are sorted in ascending order.
3720
- * ```ts
3721
- * [11,2,22,1].sort((a, b) => a - b)
3722
- * ```
3723
- */
3724
- sort(compareFn?: (a: number, b: number) => number): this;
3725
-
3726
- /**
3727
- * Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements
3728
- * at begin, inclusive, up to end, exclusive.
3729
- * @param begin The index of the beginning of the array.
3730
- * @param end The index of the end of the array.
3731
- */
3732
- subarray(begin?: number, end?: number): Uint32Array;
3733
-
3734
- /**
3735
- * Converts a number to a string by using the current locale.
3736
- */
3737
- toLocaleString(): string;
3738
-
3739
- /**
3740
- * Returns a string representation of an array.
3741
- */
3742
- toString(): string;
3743
-
3744
- /** Returns the primitive value of the specified object. */
3745
- valueOf(): Uint32Array;
3746
-
3747
- [index: number]: number;
3748
- }
3749
-
3750
- interface Uint32ArrayConstructor {
3751
- readonly prototype: Uint32Array;
3752
- new(length: number): Uint32Array;
3753
- new(array: ArrayLike<number> | ArrayBufferLike): Uint32Array;
3754
- new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint32Array;
3755
-
3756
- /**
3757
- * The size in bytes of each element in the array.
3758
- */
3759
- readonly BYTES_PER_ELEMENT: number;
3760
-
3761
- /**
3762
- * Returns a new array from a set of elements.
3763
- * @param items A set of elements to include in the new array object.
3764
- */
3765
- of(...items: number[]): Uint32Array;
3766
-
3767
- /**
3768
- * Creates an array from an array-like or iterable object.
3769
- * @param arrayLike An array-like or iterable object to convert to an array.
3770
- */
3771
- from(arrayLike: ArrayLike<number>): Uint32Array;
3772
-
3773
- /**
3774
- * Creates an array from an array-like or iterable object.
3775
- * @param arrayLike An array-like or iterable object to convert to an array.
3776
- * @param mapfn A mapping function to call on every element of the array.
3777
- * @param thisArg Value of 'this' used to invoke the mapfn.
3778
- */
3779
- from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array;
3780
-
3781
- }
3782
- declare var Uint32Array: Uint32ArrayConstructor;
3783
-
3784
- /**
3785
- * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
3786
- * of bytes could not be allocated an exception is raised.
3787
- */
3788
- interface Float32Array {
3789
- /**
3790
- * The size in bytes of each element in the array.
3791
- */
3792
- readonly BYTES_PER_ELEMENT: number;
3793
-
3794
- /**
3795
- * The ArrayBuffer instance referenced by the array.
3796
- */
3797
- readonly buffer: ArrayBufferLike;
3798
-
3799
- /**
3800
- * The length in bytes of the array.
3801
- */
3802
- readonly byteLength: number;
3803
-
3804
- /**
3805
- * The offset in bytes of the array.
3806
- */
3807
- readonly byteOffset: number;
3808
-
3809
- /**
3810
- * Returns the this object after copying a section of the array identified by start and end
3811
- * to the same array starting at position target
3812
- * @param target If target is negative, it is treated as length+target where length is the
3813
- * length of the array.
3814
- * @param start If start is negative, it is treated as length+start. If end is negative, it
3815
- * is treated as length+end.
3816
- * @param end If not specified, length of the this object is used as its default value.
3817
- */
3818
- copyWithin(target: number, start: number, end?: number): this;
3819
-
3820
- /**
3821
- * Determines whether all the members of an array satisfy the specified test.
3822
- * @param predicate A function that accepts up to three arguments. The every method calls
3823
- * the predicate function for each element in the array until the predicate returns a value
3824
- * which is coercible to the Boolean value false, or until the end of the array.
3825
- * @param thisArg An object to which the this keyword can refer in the predicate function.
3826
- * If thisArg is omitted, undefined is used as the this value.
3827
- */
3828
- every(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;
3829
-
3830
- /**
3831
- * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
3832
- * @param value value to fill array section with
3833
- * @param start index to start filling the array at. If start is negative, it is treated as
3834
- * length+start where length is the length of the array.
3835
- * @param end index to stop filling the array at. If end is negative, it is treated as
3836
- * length+end.
3837
- */
3838
- fill(value: number, start?: number, end?: number): this;
3839
-
3840
- /**
3841
- * Returns the elements of an array that meet the condition specified in a callback function.
3842
- * @param predicate A function that accepts up to three arguments. The filter method calls
3843
- * the predicate function one time for each element in the array.
3844
- * @param thisArg An object to which the this keyword can refer in the predicate function.
3845
- * If thisArg is omitted, undefined is used as the this value.
3846
- */
3847
- filter(predicate: (value: number, index: number, array: Float32Array) => any, thisArg?: any): Float32Array;
3848
-
3849
- /**
3850
- * Returns the value of the first element in the array where predicate is true, and undefined
3851
- * otherwise.
3852
- * @param predicate find calls predicate once for each element of the array, in ascending
3853
- * order, until it finds one where predicate returns true. If such an element is found, find
3854
- * immediately returns that element value. Otherwise, find returns undefined.
3855
- * @param thisArg If provided, it will be used as the this value for each invocation of
3856
- * predicate. If it is not provided, undefined is used instead.
3857
- */
3858
- find(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number | undefined;
3859
-
3860
- /**
3861
- * Returns the index of the first element in the array where predicate is true, and -1
3862
- * otherwise.
3863
- * @param predicate find calls predicate once for each element of the array, in ascending
3864
- * order, until it finds one where predicate returns true. If such an element is found,
3865
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
3866
- * @param thisArg If provided, it will be used as the this value for each invocation of
3867
- * predicate. If it is not provided, undefined is used instead.
3868
- */
3869
- findIndex(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number;
3870
-
3871
- /**
3872
- * Performs the specified action for each element in an array.
3873
- * @param callbackfn A function that accepts up to three arguments. forEach calls the
3874
- * callbackfn function one time for each element in the array.
3875
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3876
- * If thisArg is omitted, undefined is used as the this value.
3877
- */
3878
- forEach(callbackfn: (value: number, index: number, array: Float32Array) => void, thisArg?: any): void;
3879
-
3880
- /**
3881
- * Returns the index of the first occurrence of a value in an array.
3882
- * @param searchElement The value to locate in the array.
3883
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3884
- * search starts at index 0.
3885
- */
3886
- indexOf(searchElement: number, fromIndex?: number): number;
3887
-
3888
- /**
3889
- * Adds all the elements of an array separated by the specified separator string.
3890
- * @param separator A string used to separate one element of an array from the next in the
3891
- * resulting String. If omitted, the array elements are separated with a comma.
3892
- */
3893
- join(separator?: string): string;
3894
-
3895
- /**
3896
- * Returns the index of the last occurrence of a value in an array.
3897
- * @param searchElement The value to locate in the array.
3898
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3899
- * search starts at index 0.
3900
- */
3901
- lastIndexOf(searchElement: number, fromIndex?: number): number;
3902
-
3903
- /**
3904
- * The length of the array.
3905
- */
3906
- readonly length: number;
3907
-
3908
- /**
3909
- * Calls a defined callback function on each element of an array, and returns an array that
3910
- * contains the results.
3911
- * @param callbackfn A function that accepts up to three arguments. The map method calls the
3912
- * callbackfn function one time for each element in the array.
3913
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3914
- * If thisArg is omitted, undefined is used as the this value.
3915
- */
3916
- map(callbackfn: (value: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array;
3917
-
3918
- /**
3919
- * Calls the specified callback function for all the elements in an array. The return value of
3920
- * the callback function is the accumulated result, and is provided as an argument in the next
3921
- * call to the callback function.
3922
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3923
- * callbackfn function one time for each element in the array.
3924
- * @param initialValue If initialValue is specified, it is used as the initial value to start
3925
- * the accumulation. The first call to the callbackfn function provides this value as an argument
3926
- * instead of an array value.
3927
- */
3928
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
3929
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
3930
-
3931
- /**
3932
- * Calls the specified callback function for all the elements in an array. The return value of
3933
- * the callback function is the accumulated result, and is provided as an argument in the next
3934
- * call to the callback function.
3935
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3936
- * callbackfn function one time for each element in the array.
3937
- * @param initialValue If initialValue is specified, it is used as the initial value to start
3938
- * the accumulation. The first call to the callbackfn function provides this value as an argument
3939
- * instead of an array value.
3940
- */
3941
- reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
3942
-
3943
- /**
3944
- * Calls the specified callback function for all the elements in an array, in descending order.
3945
- * The return value of the callback function is the accumulated result, and is provided as an
3946
- * argument in the next call to the callback function.
3947
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3948
- * the callbackfn function one time for each element in the array.
3949
- * @param initialValue If initialValue is specified, it is used as the initial value to start
3950
- * the accumulation. The first call to the callbackfn function provides this value as an
3951
- * argument instead of an array value.
3952
- */
3953
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
3954
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
3955
-
3956
- /**
3957
- * Calls the specified callback function for all the elements in an array, in descending order.
3958
- * The return value of the callback function is the accumulated result, and is provided as an
3959
- * argument in the next call to the callback function.
3960
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3961
- * the callbackfn function one time for each element in the array.
3962
- * @param initialValue If initialValue is specified, it is used as the initial value to start
3963
- * the accumulation. The first call to the callbackfn function provides this value as an argument
3964
- * instead of an array value.
3965
- */
3966
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
3967
-
3968
- /**
3969
- * Reverses the elements in an Array.
3970
- */
3971
- reverse(): Float32Array;
3972
-
3973
- /**
3974
- * Sets a value or an array of values.
3975
- * @param array A typed or untyped array of values to set.
3976
- * @param offset The index in the current array at which the values are to be written.
3977
- */
3978
- set(array: ArrayLike<number>, offset?: number): void;
3979
-
3980
- /**
3981
- * Returns a section of an array.
3982
- * @param start The beginning of the specified portion of the array.
3983
- * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
3984
- */
3985
- slice(start?: number, end?: number): Float32Array;
3986
-
3987
- /**
3988
- * Determines whether the specified callback function returns true for any element of an array.
3989
- * @param predicate A function that accepts up to three arguments. The some method calls
3990
- * the predicate function for each element in the array until the predicate returns a value
3991
- * which is coercible to the Boolean value true, or until the end of the array.
3992
- * @param thisArg An object to which the this keyword can refer in the predicate function.
3993
- * If thisArg is omitted, undefined is used as the this value.
3994
- */
3995
- some(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;
3996
-
3997
- /**
3998
- * Sorts an array.
3999
- * @param compareFn Function used to determine the order of the elements. It is expected to return
4000
- * a negative value if first argument is less than second argument, zero if they're equal and a positive
4001
- * value otherwise. If omitted, the elements are sorted in ascending order.
4002
- * ```ts
4003
- * [11,2,22,1].sort((a, b) => a - b)
4004
- * ```
4005
- */
4006
- sort(compareFn?: (a: number, b: number) => number): this;
4007
-
4008
- /**
4009
- * Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements
4010
- * at begin, inclusive, up to end, exclusive.
4011
- * @param begin The index of the beginning of the array.
4012
- * @param end The index of the end of the array.
4013
- */
4014
- subarray(begin?: number, end?: number): Float32Array;
4015
-
4016
- /**
4017
- * Converts a number to a string by using the current locale.
4018
- */
4019
- toLocaleString(): string;
4020
-
4021
- /**
4022
- * Returns a string representation of an array.
4023
- */
4024
- toString(): string;
4025
-
4026
- /** Returns the primitive value of the specified object. */
4027
- valueOf(): Float32Array;
4028
-
4029
- [index: number]: number;
4030
- }
4031
-
4032
- interface Float32ArrayConstructor {
4033
- readonly prototype: Float32Array;
4034
- new(length: number): Float32Array;
4035
- new(array: ArrayLike<number> | ArrayBufferLike): Float32Array;
4036
- new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float32Array;
4037
-
4038
- /**
4039
- * The size in bytes of each element in the array.
4040
- */
4041
- readonly BYTES_PER_ELEMENT: number;
4042
-
4043
- /**
4044
- * Returns a new array from a set of elements.
4045
- * @param items A set of elements to include in the new array object.
4046
- */
4047
- of(...items: number[]): Float32Array;
4048
-
4049
- /**
4050
- * Creates an array from an array-like or iterable object.
4051
- * @param arrayLike An array-like or iterable object to convert to an array.
4052
- */
4053
- from(arrayLike: ArrayLike<number>): Float32Array;
4054
-
4055
- /**
4056
- * Creates an array from an array-like or iterable object.
4057
- * @param arrayLike An array-like or iterable object to convert to an array.
4058
- * @param mapfn A mapping function to call on every element of the array.
4059
- * @param thisArg Value of 'this' used to invoke the mapfn.
4060
- */
4061
- from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array;
4062
-
4063
-
4064
- }
4065
- declare var Float32Array: Float32ArrayConstructor;
4066
-
4067
- /**
4068
- * A typed array of 64-bit float values. The contents are initialized to 0. If the requested
4069
- * number of bytes could not be allocated an exception is raised.
4070
- */
4071
- interface Float64Array {
4072
- /**
4073
- * The size in bytes of each element in the array.
4074
- */
4075
- readonly BYTES_PER_ELEMENT: number;
4076
-
4077
- /**
4078
- * The ArrayBuffer instance referenced by the array.
4079
- */
4080
- readonly buffer: ArrayBufferLike;
4081
-
4082
- /**
4083
- * The length in bytes of the array.
4084
- */
4085
- readonly byteLength: number;
4086
-
4087
- /**
4088
- * The offset in bytes of the array.
4089
- */
4090
- readonly byteOffset: number;
4091
-
4092
- /**
4093
- * Returns the this object after copying a section of the array identified by start and end
4094
- * to the same array starting at position target
4095
- * @param target If target is negative, it is treated as length+target where length is the
4096
- * length of the array.
4097
- * @param start If start is negative, it is treated as length+start. If end is negative, it
4098
- * is treated as length+end.
4099
- * @param end If not specified, length of the this object is used as its default value.
4100
- */
4101
- copyWithin(target: number, start: number, end?: number): this;
4102
-
4103
- /**
4104
- * Determines whether all the members of an array satisfy the specified test.
4105
- * @param predicate A function that accepts up to three arguments. The every method calls
4106
- * the predicate function for each element in the array until the predicate returns a value
4107
- * which is coercible to the Boolean value false, or until the end of the array.
4108
- * @param thisArg An object to which the this keyword can refer in the predicate function.
4109
- * If thisArg is omitted, undefined is used as the this value.
4110
- */
4111
- every(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;
4112
-
4113
- /**
4114
- * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
4115
- * @param value value to fill array section with
4116
- * @param start index to start filling the array at. If start is negative, it is treated as
4117
- * length+start where length is the length of the array.
4118
- * @param end index to stop filling the array at. If end is negative, it is treated as
4119
- * length+end.
4120
- */
4121
- fill(value: number, start?: number, end?: number): this;
4122
-
4123
- /**
4124
- * Returns the elements of an array that meet the condition specified in a callback function.
4125
- * @param predicate A function that accepts up to three arguments. The filter method calls
4126
- * the predicate function one time for each element in the array.
4127
- * @param thisArg An object to which the this keyword can refer in the predicate function.
4128
- * If thisArg is omitted, undefined is used as the this value.
4129
- */
4130
- filter(predicate: (value: number, index: number, array: Float64Array) => any, thisArg?: any): Float64Array;
4131
-
4132
- /**
4133
- * Returns the value of the first element in the array where predicate is true, and undefined
4134
- * otherwise.
4135
- * @param predicate find calls predicate once for each element of the array, in ascending
4136
- * order, until it finds one where predicate returns true. If such an element is found, find
4137
- * immediately returns that element value. Otherwise, find returns undefined.
4138
- * @param thisArg If provided, it will be used as the this value for each invocation of
4139
- * predicate. If it is not provided, undefined is used instead.
4140
- */
4141
- find(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number | undefined;
4142
-
4143
- /**
4144
- * Returns the index of the first element in the array where predicate is true, and -1
4145
- * otherwise.
4146
- * @param predicate find calls predicate once for each element of the array, in ascending
4147
- * order, until it finds one where predicate returns true. If such an element is found,
4148
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
4149
- * @param thisArg If provided, it will be used as the this value for each invocation of
4150
- * predicate. If it is not provided, undefined is used instead.
4151
- */
4152
- findIndex(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number;
4153
-
4154
- /**
4155
- * Performs the specified action for each element in an array.
4156
- * @param callbackfn A function that accepts up to three arguments. forEach calls the
4157
- * callbackfn function one time for each element in the array.
4158
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4159
- * If thisArg is omitted, undefined is used as the this value.
4160
- */
4161
- forEach(callbackfn: (value: number, index: number, array: Float64Array) => void, thisArg?: any): void;
4162
-
4163
- /**
4164
- * Returns the index of the first occurrence of a value in an array.
4165
- * @param searchElement The value to locate in the array.
4166
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
4167
- * search starts at index 0.
4168
- */
4169
- indexOf(searchElement: number, fromIndex?: number): number;
4170
-
4171
- /**
4172
- * Adds all the elements of an array separated by the specified separator string.
4173
- * @param separator A string used to separate one element of an array from the next in the
4174
- * resulting String. If omitted, the array elements are separated with a comma.
4175
- */
4176
- join(separator?: string): string;
4177
-
4178
- /**
4179
- * Returns the index of the last occurrence of a value in an array.
4180
- * @param searchElement The value to locate in the array.
4181
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
4182
- * search starts at index 0.
4183
- */
4184
- lastIndexOf(searchElement: number, fromIndex?: number): number;
4185
-
4186
- /**
4187
- * The length of the array.
4188
- */
4189
- readonly length: number;
4190
-
4191
- /**
4192
- * Calls a defined callback function on each element of an array, and returns an array that
4193
- * contains the results.
4194
- * @param callbackfn A function that accepts up to three arguments. The map method calls the
4195
- * callbackfn function one time for each element in the array.
4196
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4197
- * If thisArg is omitted, undefined is used as the this value.
4198
- */
4199
- map(callbackfn: (value: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array;
4200
-
4201
- /**
4202
- * Calls the specified callback function for all the elements in an array. The return value of
4203
- * the callback function is the accumulated result, and is provided as an argument in the next
4204
- * call to the callback function.
4205
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
4206
- * callbackfn function one time for each element in the array.
4207
- * @param initialValue If initialValue is specified, it is used as the initial value to start
4208
- * the accumulation. The first call to the callbackfn function provides this value as an argument
4209
- * instead of an array value.
4210
- */
4211
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
4212
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
4213
-
4214
- /**
4215
- * Calls the specified callback function for all the elements in an array. The return value of
4216
- * the callback function is the accumulated result, and is provided as an argument in the next
4217
- * call to the callback function.
4218
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
4219
- * callbackfn function one time for each element in the array.
4220
- * @param initialValue If initialValue is specified, it is used as the initial value to start
4221
- * the accumulation. The first call to the callbackfn function provides this value as an argument
4222
- * instead of an array value.
4223
- */
4224
- reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
4225
-
4226
- /**
4227
- * Calls the specified callback function for all the elements in an array, in descending order.
4228
- * The return value of the callback function is the accumulated result, and is provided as an
4229
- * argument in the next call to the callback function.
4230
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
4231
- * the callbackfn function one time for each element in the array.
4232
- * @param initialValue If initialValue is specified, it is used as the initial value to start
4233
- * the accumulation. The first call to the callbackfn function provides this value as an
4234
- * argument instead of an array value.
4235
- */
4236
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
4237
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
4238
-
4239
- /**
4240
- * Calls the specified callback function for all the elements in an array, in descending order.
4241
- * The return value of the callback function is the accumulated result, and is provided as an
4242
- * argument in the next call to the callback function.
4243
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
4244
- * the callbackfn function one time for each element in the array.
4245
- * @param initialValue If initialValue is specified, it is used as the initial value to start
4246
- * the accumulation. The first call to the callbackfn function provides this value as an argument
4247
- * instead of an array value.
4248
- */
4249
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
4250
-
4251
- /**
4252
- * Reverses the elements in an Array.
4253
- */
4254
- reverse(): Float64Array;
4255
-
4256
- /**
4257
- * Sets a value or an array of values.
4258
- * @param array A typed or untyped array of values to set.
4259
- * @param offset The index in the current array at which the values are to be written.
4260
- */
4261
- set(array: ArrayLike<number>, offset?: number): void;
4262
-
4263
- /**
4264
- * Returns a section of an array.
4265
- * @param start The beginning of the specified portion of the array.
4266
- * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
4267
- */
4268
- slice(start?: number, end?: number): Float64Array;
4269
-
4270
- /**
4271
- * Determines whether the specified callback function returns true for any element of an array.
4272
- * @param predicate A function that accepts up to three arguments. The some method calls
4273
- * the predicate function for each element in the array until the predicate returns a value
4274
- * which is coercible to the Boolean value true, or until the end of the array.
4275
- * @param thisArg An object to which the this keyword can refer in the predicate function.
4276
- * If thisArg is omitted, undefined is used as the this value.
4277
- */
4278
- some(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;
4279
-
4280
- /**
4281
- * Sorts an array.
4282
- * @param compareFn Function used to determine the order of the elements. It is expected to return
4283
- * a negative value if first argument is less than second argument, zero if they're equal and a positive
4284
- * value otherwise. If omitted, the elements are sorted in ascending order.
4285
- * ```ts
4286
- * [11,2,22,1].sort((a, b) => a - b)
4287
- * ```
4288
- */
4289
- sort(compareFn?: (a: number, b: number) => number): this;
4290
-
4291
- /**
4292
- * at begin, inclusive, up to end, exclusive.
4293
- * @param begin The index of the beginning of the array.
4294
- * @param end The index of the end of the array.
4295
- */
4296
- subarray(begin?: number, end?: number): Float64Array;
4297
-
4298
- toString(): string;
4299
-
4300
- /** Returns the primitive value of the specified object. */
4301
- valueOf(): Float64Array;
4302
-
4303
- [index: number]: number;
4304
- }
4305
-
4306
- interface Float64ArrayConstructor {
4307
- readonly prototype: Float64Array;
4308
- new(length: number): Float64Array;
4309
- new(array: ArrayLike<number> | ArrayBufferLike): Float64Array;
4310
- new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float64Array;
4311
-
4312
- /**
4313
- * The size in bytes of each element in the array.
4314
- */
4315
- readonly BYTES_PER_ELEMENT: number;
4316
-
4317
- /**
4318
- * Returns a new array from a set of elements.
4319
- * @param items A set of elements to include in the new array object.
4320
- */
4321
- of(...items: number[]): Float64Array;
4322
-
4323
- /**
4324
- * Creates an array from an array-like or iterable object.
4325
- * @param arrayLike An array-like or iterable object to convert to an array.
4326
- */
4327
- from(arrayLike: ArrayLike<number>): Float64Array;
4328
-
4329
- /**
4330
- * Creates an array from an array-like or iterable object.
4331
- * @param arrayLike An array-like or iterable object to convert to an array.
4332
- * @param mapfn A mapping function to call on every element of the array.
4333
- * @param thisArg Value of 'this' used to invoke the mapfn.
4334
- */
4335
- from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array;
4336
-
4337
- }
4338
- declare var Float64Array: Float64ArrayConstructor;
4339
-
4340
- /////////////////////////////
4341
- /// ECMAScript Internationalization API
4342
- /////////////////////////////
4343
-
4344
- declare namespace Intl {
4345
- interface CollatorOptions {
4346
- usage?: string | undefined;
4347
- localeMatcher?: string | undefined;
4348
- numeric?: boolean | undefined;
4349
- caseFirst?: string | undefined;
4350
- sensitivity?: string | undefined;
4351
- ignorePunctuation?: boolean | undefined;
4352
- }
4353
-
4354
- interface ResolvedCollatorOptions {
4355
- locale: string;
4356
- usage: string;
4357
- sensitivity: string;
4358
- ignorePunctuation: boolean;
4359
- collation: string;
4360
- caseFirst: string;
4361
- numeric: boolean;
4362
- }
4363
-
4364
- interface Collator {
4365
- compare(x: string, y: string): number;
4366
- resolvedOptions(): ResolvedCollatorOptions;
4367
- }
4368
- var Collator: {
4369
- new(locales?: string | string[], options?: CollatorOptions): Collator;
4370
- (locales?: string | string[], options?: CollatorOptions): Collator;
4371
- supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];
4372
- };
4373
-
4374
- interface NumberFormatOptions {
4375
- localeMatcher?: string | undefined;
4376
- style?: string | undefined;
4377
- currency?: string | undefined;
4378
- currencyDisplay?: string | undefined;
4379
- currencySign?: string | undefined;
4380
- useGrouping?: boolean | undefined;
4381
- minimumIntegerDigits?: number | undefined;
4382
- minimumFractionDigits?: number | undefined;
4383
- maximumFractionDigits?: number | undefined;
4384
- minimumSignificantDigits?: number | undefined;
4385
- maximumSignificantDigits?: number | undefined;
4386
- }
4387
-
4388
- interface ResolvedNumberFormatOptions {
4389
- locale: string;
4390
- numberingSystem: string;
4391
- style: string;
4392
- currency?: string;
4393
- currencyDisplay?: string;
4394
- minimumIntegerDigits: number;
4395
- minimumFractionDigits: number;
4396
- maximumFractionDigits: number;
4397
- minimumSignificantDigits?: number;
4398
- maximumSignificantDigits?: number;
4399
- useGrouping: boolean;
4400
- }
4401
-
4402
- interface NumberFormat {
4403
- format(value: number): string;
4404
- resolvedOptions(): ResolvedNumberFormatOptions;
4405
- }
4406
- var NumberFormat: {
4407
- new(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
4408
- (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
4409
- supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];
4410
- };
4411
-
4412
- interface DateTimeFormatOptions {
4413
- localeMatcher?: "best fit" | "lookup" | undefined;
4414
- weekday?: "long" | "short" | "narrow" | undefined;
4415
- era?: "long" | "short" | "narrow" | undefined;
4416
- year?: "numeric" | "2-digit" | undefined;
4417
- month?: "numeric" | "2-digit" | "long" | "short" | "narrow" | undefined;
4418
- day?: "numeric" | "2-digit" | undefined;
4419
- hour?: "numeric" | "2-digit" | undefined;
4420
- minute?: "numeric" | "2-digit" | undefined;
4421
- second?: "numeric" | "2-digit" | undefined;
4422
- timeZoneName?: "long" | "short" | undefined;
4423
- formatMatcher?: "best fit" | "basic" | undefined;
4424
- hour12?: boolean | undefined;
4425
- timeZone?: string | undefined;
4426
- }
4427
-
4428
- interface ResolvedDateTimeFormatOptions {
4429
- locale: string;
4430
- calendar: string;
4431
- numberingSystem: string;
4432
- timeZone: string;
4433
- hour12?: boolean;
4434
- weekday?: string;
4435
- era?: string;
4436
- year?: string;
4437
- month?: string;
4438
- day?: string;
4439
- hour?: string;
4440
- minute?: string;
4441
- second?: string;
4442
- timeZoneName?: string;
4443
- }
4444
-
4445
- interface DateTimeFormat {
4446
- format(date?: Date | number): string;
4447
- resolvedOptions(): ResolvedDateTimeFormatOptions;
4448
- }
4449
- var DateTimeFormat: {
4450
- new(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
4451
- (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
4452
- supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];
4453
- };
4454
- }
4455
-
4456
- interface String {
4457
- /**
4458
- * Determines whether two strings are equivalent in the current or specified locale.
4459
- * @param that String to compare to target string
4460
- * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
4461
- * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
4462
- */
4463
- localeCompare(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
4464
- }
4465
-
4466
- interface Number {
4467
- /**
4468
- * Converts a number to a string by using the current or specified locale.
4469
- * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
4470
- * @param options An object that contains one or more properties that specify comparison options.
4471
- */
4472
- toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
4473
- }
4474
-
4475
- interface Date {
4476
- /**
4477
- * Converts a date and time to a string by using the current or specified locale.
4478
- * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
4479
- * @param options An object that contains one or more properties that specify comparison options.
4480
- */
4481
- toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
4482
- /**
4483
- * Converts a date to a string by using the current or specified locale.
4484
- * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
4485
- * @param options An object that contains one or more properties that specify comparison options.
4486
- */
4487
- toLocaleDateString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
4488
-
4489
- /**
4490
- * Converts a time to a string by using the current or specified locale.
4491
- * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
4492
- * @param options An object that contains one or more properties that specify comparison options.
4493
- */
4494
- toLocaleTimeString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
4495
- }