@pinuts/bsr-uikit-relaunch 0.2.39 → 0.2.40

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 (186) hide show
  1. package/dist/hooks/withFieldGroup.d.ts.map +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/index.js.LICENSE.txt +2 -2
  4. package/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +2 -2
  5. package/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
  6. package/node_modules/@babel/runtime/helpers/esm/superPropGet.js +4 -4
  7. package/node_modules/@babel/runtime/helpers/esm/superPropSet.js +2 -2
  8. package/node_modules/@babel/runtime/helpers/esm/tsRewriteRelativeImportExtensions.js +6 -0
  9. package/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js +4 -3
  10. package/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +2 -2
  11. package/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +1 -1
  12. package/node_modules/@babel/runtime/helpers/superPropGet.js +4 -4
  13. package/node_modules/@babel/runtime/helpers/superPropSet.js +2 -2
  14. package/node_modules/@babel/runtime/helpers/tsRewriteRelativeImportExtensions.js +6 -0
  15. package/node_modules/@babel/runtime/helpers/wrapRegExp.js +4 -3
  16. package/node_modules/@babel/runtime/package.json +10 -1
  17. package/node_modules/@types/hoist-non-react-statics/README.md +13 -13
  18. package/node_modules/@types/hoist-non-react-statics/index.d.ts +12 -12
  19. package/node_modules/@types/hoist-non-react-statics/package.json +4 -3
  20. package/node_modules/@types/react/README.md +3 -3
  21. package/node_modules/@types/react/canary.d.ts +0 -122
  22. package/node_modules/@types/react/compiler-runtime.d.ts +4 -0
  23. package/node_modules/@types/react/experimental.d.ts +118 -4
  24. package/node_modules/@types/react/global.d.ts +4 -0
  25. package/node_modules/@types/react/index.d.ts +468 -770
  26. package/node_modules/@types/react/package.json +9 -9
  27. package/node_modules/@types/react/ts5.0/canary.d.ts +0 -122
  28. package/node_modules/@types/react/ts5.0/experimental.d.ts +118 -4
  29. package/node_modules/@types/react/ts5.0/global.d.ts +4 -0
  30. package/node_modules/@types/react/ts5.0/index.d.ts +464 -766
  31. package/node_modules/@types/react/ts5.0/v18/global.d.ts +160 -0
  32. package/node_modules/@types/react/ts5.0/v18/index.d.ts +4543 -0
  33. package/node_modules/@types/react/ts5.0/v18/jsx-dev-runtime.d.ts +45 -0
  34. package/node_modules/@types/react/ts5.0/v18/jsx-runtime.d.ts +36 -0
  35. package/node_modules/@types/react/ts5.0/v18/ts5.0/global.d.ts +160 -0
  36. package/node_modules/@types/react/ts5.0/v18/ts5.0/index.d.ts +4530 -0
  37. package/node_modules/@types/react/ts5.0/v18/ts5.0/jsx-dev-runtime.d.ts +44 -0
  38. package/node_modules/@types/react/ts5.0/v18/ts5.0/jsx-runtime.d.ts +35 -0
  39. package/node_modules/tslib/modules/index.d.ts +1 -0
  40. package/node_modules/tslib/modules/index.js +2 -0
  41. package/node_modules/tslib/package.json +1 -1
  42. package/node_modules/tslib/tslib.d.ts +7 -0
  43. package/node_modules/tslib/tslib.es6.js +24 -1
  44. package/node_modules/tslib/tslib.es6.mjs +24 -1
  45. package/node_modules/tslib/tslib.js +56 -1
  46. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/README.md +1 -1
  47. package/node_modules/{@pinuts/form-builder/node_modules/typescript/lib/tsc.js → typescript/lib/_tsc.js} +4349 -2310
  48. package/node_modules/{@pinuts/form-builder/node_modules/typescript/lib/tsserver.js → typescript/lib/_tsserver.js} +44 -8
  49. package/node_modules/{@pinuts/form-builder/node_modules/typescript/lib/typingsInstaller.js → typescript/lib/_typingsInstaller.js} +2 -16
  50. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/cs/diagnosticMessages.generated.json +30 -12
  51. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/de/diagnosticMessages.generated.json +30 -12
  52. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/es/diagnosticMessages.generated.json +30 -12
  53. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/fr/diagnosticMessages.generated.json +30 -12
  54. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/it/diagnosticMessages.generated.json +30 -12
  55. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/ja/diagnosticMessages.generated.json +30 -12
  56. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/ko/diagnosticMessages.generated.json +30 -12
  57. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.decorators.d.ts +13 -15
  58. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.dom.d.ts +1884 -361
  59. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.dom.iterable.d.ts +9 -7
  60. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2015.core.d.ts +9 -9
  61. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2015.iterable.d.ts +114 -36
  62. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2015.symbol.wellknown.d.ts +10 -10
  63. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2016.array.include.d.ts +9 -9
  64. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2016.intl.d.ts +1 -1
  65. package/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +21 -0
  66. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2017.d.ts +3 -2
  67. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2017.sharedmemory.d.ts +14 -14
  68. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2017.typedarrays.d.ts +9 -9
  69. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2020.bigint.d.ts +92 -54
  70. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2020.intl.d.ts +36 -36
  71. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2020.sharedmemory.d.ts +13 -11
  72. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2020.string.d.ts +2 -0
  73. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2021.intl.d.ts +17 -17
  74. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2021.weakref.d.ts +2 -0
  75. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2022.array.d.ts +11 -11
  76. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2022.d.ts +1 -2
  77. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2022.error.d.ts +2 -0
  78. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2022.intl.d.ts +9 -9
  79. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2023.array.d.ts +79 -79
  80. package/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +65 -0
  81. package/node_modules/typescript/lib/lib.es2024.collection.d.ts +29 -0
  82. package/node_modules/typescript/lib/lib.es2024.d.ts +26 -0
  83. package/node_modules/typescript/lib/lib.es2024.full.d.ts +24 -0
  84. package/node_modules/{@pinuts/form-builder/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts → typescript/lib/lib.es2024.sharedmemory.d.ts} +29 -0
  85. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es5.d.ts +312 -303
  86. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.esnext.array.d.ts +1 -1
  87. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.esnext.collection.d.ts +1 -11
  88. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.esnext.d.ts +3 -5
  89. package/node_modules/typescript/lib/lib.esnext.float16.d.ts +443 -0
  90. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.esnext.iterator.d.ts +1 -1
  91. package/node_modules/typescript/lib/lib.esnext.promise.d.ts +34 -0
  92. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.webworker.d.ts +571 -87
  93. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.webworker.iterable.d.ts +6 -7
  94. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/pl/diagnosticMessages.generated.json +30 -12
  95. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/pt-br/diagnosticMessages.generated.json +30 -12
  96. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/ru/diagnosticMessages.generated.json +30 -12
  97. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/tr/diagnosticMessages.generated.json +30 -12
  98. package/node_modules/typescript/lib/tsc.js +8 -0
  99. package/node_modules/typescript/lib/tsserver.js +8 -0
  100. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/typesMap.json +497 -497
  101. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/typescript.d.ts +95 -24
  102. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/typescript.js +6556 -3509
  103. package/node_modules/typescript/lib/typingsInstaller.js +8 -0
  104. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/zh-cn/diagnosticMessages.generated.json +31 -13
  105. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/zh-tw/diagnosticMessages.generated.json +30 -12
  106. package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/package.json +27 -28
  107. package/package.json +3 -3
  108. package/node_modules/@pinuts/form-builder/node_modules/typescript/lib/cancellationToken.js +0 -90
  109. package/node_modules/@types/prop-types/LICENSE +0 -21
  110. package/node_modules/@types/prop-types/README.md +0 -15
  111. package/node_modules/@types/prop-types/index.d.ts +0 -114
  112. package/node_modules/@types/prop-types/package.json +0 -35
  113. /package/node_modules/{regenerator-runtime → @babel/runtime/node_modules/regenerator-runtime}/LICENSE +0 -0
  114. /package/node_modules/{regenerator-runtime → @babel/runtime/node_modules/regenerator-runtime}/README.md +0 -0
  115. /package/node_modules/{regenerator-runtime → @babel/runtime/node_modules/regenerator-runtime}/package.json +0 -0
  116. /package/node_modules/{regenerator-runtime → @babel/runtime/node_modules/regenerator-runtime}/path.js +0 -0
  117. /package/node_modules/{regenerator-runtime → @babel/runtime/node_modules/regenerator-runtime}/runtime.js +0 -0
  118. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/LICENSE.txt +0 -0
  119. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/SECURITY.md +0 -0
  120. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/ThirdPartyNoticeText.txt +0 -0
  121. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/bin/tsc +0 -0
  122. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/bin/tsserver +0 -0
  123. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.d.ts +0 -0
  124. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.decorators.legacy.d.ts +0 -0
  125. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.dom.asynciterable.d.ts +0 -0
  126. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2015.collection.d.ts +0 -0
  127. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2015.d.ts +0 -0
  128. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2015.generator.d.ts +0 -0
  129. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2015.promise.d.ts +0 -0
  130. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2015.proxy.d.ts +0 -0
  131. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2015.reflect.d.ts +0 -0
  132. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2015.symbol.d.ts +0 -0
  133. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2016.d.ts +0 -0
  134. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2016.full.d.ts +0 -0
  135. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2017.date.d.ts +0 -0
  136. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2017.full.d.ts +0 -0
  137. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2017.intl.d.ts +0 -0
  138. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2017.object.d.ts +0 -0
  139. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2017.string.d.ts +0 -0
  140. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2018.asyncgenerator.d.ts +0 -0
  141. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2018.asynciterable.d.ts +0 -0
  142. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2018.d.ts +0 -0
  143. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2018.full.d.ts +0 -0
  144. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2018.intl.d.ts +0 -0
  145. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2018.promise.d.ts +0 -0
  146. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2018.regexp.d.ts +0 -0
  147. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2019.array.d.ts +0 -0
  148. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2019.d.ts +0 -0
  149. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2019.full.d.ts +0 -0
  150. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2019.intl.d.ts +0 -0
  151. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2019.object.d.ts +0 -0
  152. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2019.string.d.ts +0 -0
  153. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2019.symbol.d.ts +0 -0
  154. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2020.d.ts +0 -0
  155. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2020.date.d.ts +0 -0
  156. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2020.full.d.ts +0 -0
  157. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2020.number.d.ts +0 -0
  158. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2020.promise.d.ts +0 -0
  159. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2020.symbol.wellknown.d.ts +0 -0
  160. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2021.d.ts +0 -0
  161. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2021.full.d.ts +0 -0
  162. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2021.promise.d.ts +0 -0
  163. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2021.string.d.ts +0 -0
  164. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2022.full.d.ts +0 -0
  165. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2022.object.d.ts +0 -0
  166. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2022.regexp.d.ts +0 -0
  167. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2022.string.d.ts +0 -0
  168. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2023.collection.d.ts +0 -0
  169. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2023.d.ts +0 -0
  170. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2023.full.d.ts +0 -0
  171. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es2023.intl.d.ts +0 -0
  172. /package/node_modules/{@pinuts/form-builder/node_modules/typescript/lib/lib.esnext.object.d.ts → typescript/lib/lib.es2024.object.d.ts} +0 -0
  173. /package/node_modules/{@pinuts/form-builder/node_modules/typescript/lib/lib.esnext.promise.d.ts → typescript/lib/lib.es2024.promise.d.ts} +0 -0
  174. /package/node_modules/{@pinuts/form-builder/node_modules/typescript/lib/lib.esnext.regexp.d.ts → typescript/lib/lib.es2024.regexp.d.ts} +0 -0
  175. /package/node_modules/{@pinuts/form-builder/node_modules/typescript/lib/lib.esnext.string.d.ts → typescript/lib/lib.es2024.string.d.ts} +0 -0
  176. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.es6.d.ts +0 -0
  177. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.esnext.decorators.d.ts +0 -0
  178. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.esnext.disposable.d.ts +0 -0
  179. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.esnext.full.d.ts +0 -0
  180. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.esnext.intl.d.ts +0 -0
  181. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.scripthost.d.ts +0 -0
  182. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.webworker.asynciterable.d.ts +0 -0
  183. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/lib.webworker.importscripts.d.ts +0 -0
  184. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/tsserverlibrary.d.ts +0 -0
  185. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/tsserverlibrary.js +0 -0
  186. /package/node_modules/{@pinuts/form-builder/node_modules/typescript → typescript}/lib/watchGuard.js +0 -0
@@ -28,14 +28,14 @@ interface SharedArrayBuffer {
28
28
  /**
29
29
  * Returns a section of an SharedArrayBuffer.
30
30
  */
31
- slice(begin: number, end?: number): SharedArrayBuffer;
31
+ slice(begin?: number, end?: number): SharedArrayBuffer;
32
32
  readonly [Symbol.species]: SharedArrayBuffer;
33
33
  readonly [Symbol.toStringTag]: "SharedArrayBuffer";
34
34
  }
35
35
 
36
36
  interface SharedArrayBufferConstructor {
37
37
  readonly prototype: SharedArrayBuffer;
38
- new (byteLength: number): SharedArrayBuffer;
38
+ new (byteLength?: number): SharedArrayBuffer;
39
39
  }
40
40
  declare var SharedArrayBuffer: SharedArrayBufferConstructor;
41
41
 
@@ -49,28 +49,28 @@ interface Atomics {
49
49
  * Until this atomic operation completes, any other read or write operation against the array
50
50
  * will block.
51
51
  */
52
- add(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
52
+ add(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, value: number): number;
53
53
 
54
54
  /**
55
55
  * Stores the bitwise AND of a value with the value at the given position in the array,
56
56
  * returning the original value. Until this atomic operation completes, any other read or
57
57
  * write operation against the array will block.
58
58
  */
59
- and(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
59
+ and(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, value: number): number;
60
60
 
61
61
  /**
62
62
  * Replaces the value at the given position in the array if the original value equals the given
63
63
  * expected value, returning the original value. Until this atomic operation completes, any
64
64
  * other read or write operation against the array will block.
65
65
  */
66
- compareExchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, expectedValue: number, replacementValue: number): number;
66
+ compareExchange(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, expectedValue: number, replacementValue: number): number;
67
67
 
68
68
  /**
69
69
  * Replaces the value at the given position in the array, returning the original value. Until
70
70
  * this atomic operation completes, any other read or write operation against the array will
71
71
  * block.
72
72
  */
73
- exchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
73
+ exchange(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, value: number): number;
74
74
 
75
75
  /**
76
76
  * Returns a value indicating whether high-performance algorithms can use atomic operations
@@ -83,27 +83,27 @@ interface Atomics {
83
83
  * Returns the value at the given position in the array. Until this atomic operation completes,
84
84
  * any other read or write operation against the array will block.
85
85
  */
86
- load(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number): number;
86
+ load(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number): number;
87
87
 
88
88
  /**
89
89
  * Stores the bitwise OR of a value with the value at the given position in the array,
90
90
  * returning the original value. Until this atomic operation completes, any other read or write
91
91
  * operation against the array will block.
92
92
  */
93
- or(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
93
+ or(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, value: number): number;
94
94
 
95
95
  /**
96
96
  * Stores a value at the given position in the array, returning the new value. Until this
97
97
  * atomic operation completes, any other read or write operation against the array will block.
98
98
  */
99
- store(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
99
+ store(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, value: number): number;
100
100
 
101
101
  /**
102
102
  * Subtracts a value from the value at the given position in the array, returning the original
103
103
  * value. Until this atomic operation completes, any other read or write operation against the
104
104
  * array will block.
105
105
  */
106
- sub(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
106
+ sub(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, value: number): number;
107
107
 
108
108
  /**
109
109
  * If the value at the given position in the array is equal to the provided value, the current
@@ -111,23 +111,23 @@ interface Atomics {
111
111
  * `"timed-out"`) or until the agent is awoken (returning `"ok"`); otherwise, returns
112
112
  * `"not-equal"`.
113
113
  */
114
- wait(typedArray: Int32Array, index: number, value: number, timeout?: number): "ok" | "not-equal" | "timed-out";
114
+ wait(typedArray: Int32Array<ArrayBufferLike>, index: number, value: number, timeout?: number): "ok" | "not-equal" | "timed-out";
115
115
 
116
116
  /**
117
117
  * Wakes up sleeping agents that are waiting on the given index of the array, returning the
118
118
  * number of agents that were awoken.
119
- * @param typedArray A shared Int32Array.
119
+ * @param typedArray A shared Int32Array<ArrayBufferLike>.
120
120
  * @param index The position in the typedArray to wake up on.
121
121
  * @param count The number of sleeping agents to notify. Defaults to +Infinity.
122
122
  */
123
- notify(typedArray: Int32Array, index: number, count?: number): number;
123
+ notify(typedArray: Int32Array<ArrayBufferLike>, index: number, count?: number): number;
124
124
 
125
125
  /**
126
126
  * Stores the bitwise XOR of a value with the value at the given position in the array,
127
127
  * returning the original value. Until this atomic operation completes, any other read or write
128
128
  * operation against the array will block.
129
129
  */
130
- xor(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
130
+ xor(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, value: number): number;
131
131
 
132
132
  readonly [Symbol.toStringTag]: "Atomics";
133
133
  }
@@ -17,37 +17,37 @@ and limitations under the License.
17
17
  /// <reference no-default-lib="true"/>
18
18
 
19
19
  interface Int8ArrayConstructor {
20
- new (): Int8Array;
20
+ new (): Int8Array<ArrayBuffer>;
21
21
  }
22
22
 
23
23
  interface Uint8ArrayConstructor {
24
- new (): Uint8Array;
24
+ new (): Uint8Array<ArrayBuffer>;
25
25
  }
26
26
 
27
27
  interface Uint8ClampedArrayConstructor {
28
- new (): Uint8ClampedArray;
28
+ new (): Uint8ClampedArray<ArrayBuffer>;
29
29
  }
30
30
 
31
31
  interface Int16ArrayConstructor {
32
- new (): Int16Array;
32
+ new (): Int16Array<ArrayBuffer>;
33
33
  }
34
34
 
35
35
  interface Uint16ArrayConstructor {
36
- new (): Uint16Array;
36
+ new (): Uint16Array<ArrayBuffer>;
37
37
  }
38
38
 
39
39
  interface Int32ArrayConstructor {
40
- new (): Int32Array;
40
+ new (): Int32Array<ArrayBuffer>;
41
41
  }
42
42
 
43
43
  interface Uint32ArrayConstructor {
44
- new (): Uint32Array;
44
+ new (): Uint32Array<ArrayBuffer>;
45
45
  }
46
46
 
47
47
  interface Float32ArrayConstructor {
48
- new (): Float32Array;
48
+ new (): Float32Array<ArrayBuffer>;
49
49
  }
50
50
 
51
51
  interface Float64ArrayConstructor {
52
- new (): Float64Array;
52
+ new (): Float64Array<ArrayBuffer>;
53
53
  }
@@ -20,7 +20,7 @@ and limitations under the License.
20
20
 
21
21
  interface BigIntToLocaleStringOptions {
22
22
  /**
23
- * The locale matching algorithm to use.The default is "best fit". For information about this option, see the {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}.
23
+ * The locale matching algorithm to use.The default is "best fit". For information about this option, see the {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}.
24
24
  */
25
25
  localeMatcher?: string;
26
26
  /**
@@ -146,12 +146,12 @@ declare var BigInt: BigIntConstructor;
146
146
  * A typed array of 64-bit signed integer values. The contents are initialized to 0. If the
147
147
  * requested number of bytes could not be allocated, an exception is raised.
148
148
  */
149
- interface BigInt64Array {
149
+ interface BigInt64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
150
150
  /** The size in bytes of each element in the array. */
151
151
  readonly BYTES_PER_ELEMENT: number;
152
152
 
153
153
  /** The ArrayBuffer instance referenced by the array. */
154
- readonly buffer: ArrayBufferLike;
154
+ readonly buffer: TArrayBuffer;
155
155
 
156
156
  /** The length in bytes of the array. */
157
157
  readonly byteLength: number;
@@ -181,7 +181,7 @@ interface BigInt64Array {
181
181
  * @param thisArg An object to which the this keyword can refer in the predicate function.
182
182
  * If thisArg is omitted, undefined is used as the this value.
183
183
  */
184
- every(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
184
+ every(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => boolean, thisArg?: any): boolean;
185
185
 
186
186
  /**
187
187
  * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
@@ -200,7 +200,7 @@ interface BigInt64Array {
200
200
  * @param thisArg An object to which the this keyword can refer in the predicate function.
201
201
  * If thisArg is omitted, undefined is used as the this value.
202
202
  */
203
- filter(predicate: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array;
203
+ filter(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => any, thisArg?: any): BigInt64Array<ArrayBuffer>;
204
204
 
205
205
  /**
206
206
  * Returns the value of the first element in the array where predicate is true, and undefined
@@ -211,7 +211,7 @@ interface BigInt64Array {
211
211
  * @param thisArg If provided, it will be used as the this value for each invocation of
212
212
  * predicate. If it is not provided, undefined is used instead.
213
213
  */
214
- find(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): bigint | undefined;
214
+ find(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => boolean, thisArg?: any): bigint | undefined;
215
215
 
216
216
  /**
217
217
  * Returns the index of the first element in the array where predicate is true, and -1
@@ -222,7 +222,7 @@ interface BigInt64Array {
222
222
  * @param thisArg If provided, it will be used as the this value for each invocation of
223
223
  * predicate. If it is not provided, undefined is used instead.
224
224
  */
225
- findIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): number;
225
+ findIndex(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => boolean, thisArg?: any): number;
226
226
 
227
227
  /**
228
228
  * Performs the specified action for each element in an array.
@@ -231,7 +231,7 @@ interface BigInt64Array {
231
231
  * @param thisArg An object to which the this keyword can refer in the callbackfn function.
232
232
  * If thisArg is omitted, undefined is used as the this value.
233
233
  */
234
- forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array) => void, thisArg?: any): void;
234
+ forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => void, thisArg?: any): void;
235
235
 
236
236
  /**
237
237
  * Determines whether an array includes a certain element, returning true or false as appropriate.
@@ -277,7 +277,7 @@ interface BigInt64Array {
277
277
  * @param thisArg An object to which the this keyword can refer in the callbackfn function.
278
278
  * If thisArg is omitted, undefined is used as the this value.
279
279
  */
280
- map(callbackfn: (value: bigint, index: number, array: BigInt64Array) => bigint, thisArg?: any): BigInt64Array;
280
+ map(callbackfn: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => bigint, thisArg?: any): BigInt64Array<ArrayBuffer>;
281
281
 
282
282
  /**
283
283
  * Calls the specified callback function for all the elements in an array. The return value of
@@ -289,7 +289,7 @@ interface BigInt64Array {
289
289
  * the accumulation. The first call to the callbackfn function provides this value as an argument
290
290
  * instead of an array value.
291
291
  */
292
- reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
292
+ reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array<TArrayBuffer>) => bigint): bigint;
293
293
 
294
294
  /**
295
295
  * Calls the specified callback function for all the elements in an array. The return value of
@@ -301,7 +301,7 @@ interface BigInt64Array {
301
301
  * the accumulation. The first call to the callbackfn function provides this value as an argument
302
302
  * instead of an array value.
303
303
  */
304
- reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
304
+ reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array<TArrayBuffer>) => U, initialValue: U): U;
305
305
 
306
306
  /**
307
307
  * Calls the specified callback function for all the elements in an array, in descending order.
@@ -313,7 +313,7 @@ interface BigInt64Array {
313
313
  * the accumulation. The first call to the callbackfn function provides this value as an
314
314
  * argument instead of an array value.
315
315
  */
316
- reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
316
+ reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array<TArrayBuffer>) => bigint): bigint;
317
317
 
318
318
  /**
319
319
  * Calls the specified callback function for all the elements in an array, in descending order.
@@ -325,7 +325,7 @@ interface BigInt64Array {
325
325
  * the accumulation. The first call to the callbackfn function provides this value as an argument
326
326
  * instead of an array value.
327
327
  */
328
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
328
+ reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array<TArrayBuffer>) => U, initialValue: U): U;
329
329
 
330
330
  /** Reverses the elements in the array. */
331
331
  reverse(): this;
@@ -342,7 +342,7 @@ interface BigInt64Array {
342
342
  * @param start The beginning of the specified portion of the array.
343
343
  * @param end The end of the specified portion of the array.
344
344
  */
345
- slice(start?: number, end?: number): BigInt64Array;
345
+ slice(start?: number, end?: number): BigInt64Array<ArrayBuffer>;
346
346
 
347
347
  /**
348
348
  * Determines whether the specified callback function returns true for any element of an array.
@@ -352,7 +352,7 @@ interface BigInt64Array {
352
352
  * @param thisArg An object to which the this keyword can refer in the predicate function.
353
353
  * If thisArg is omitted, undefined is used as the this value.
354
354
  */
355
- some(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
355
+ some(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => boolean, thisArg?: any): boolean;
356
356
 
357
357
  /**
358
358
  * Sorts the array.
@@ -366,7 +366,7 @@ interface BigInt64Array {
366
366
  * @param begin The index of the beginning of the array.
367
367
  * @param end The index of the end of the array.
368
368
  */
369
- subarray(begin?: number, end?: number): BigInt64Array;
369
+ subarray(begin?: number, end?: number): BigInt64Array<TArrayBuffer>;
370
370
 
371
371
  /** Converts the array to a string by using the current locale. */
372
372
  toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
@@ -375,7 +375,7 @@ interface BigInt64Array {
375
375
  toString(): string;
376
376
 
377
377
  /** Returns the primitive value of the specified object. */
378
- valueOf(): BigInt64Array;
378
+ valueOf(): BigInt64Array<TArrayBuffer>;
379
379
 
380
380
  /** Yields each value in the array. */
381
381
  values(): ArrayIterator<bigint>;
@@ -386,12 +386,13 @@ interface BigInt64Array {
386
386
 
387
387
  [index: number]: bigint;
388
388
  }
389
-
390
389
  interface BigInt64ArrayConstructor {
391
- readonly prototype: BigInt64Array;
392
- new (length?: number): BigInt64Array;
393
- new (array: Iterable<bigint>): BigInt64Array;
394
- new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array;
390
+ readonly prototype: BigInt64Array<ArrayBufferLike>;
391
+ new (length?: number): BigInt64Array<ArrayBuffer>;
392
+ new (array: ArrayLike<bigint> | Iterable<bigint>): BigInt64Array<ArrayBuffer>;
393
+ new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): BigInt64Array<TArrayBuffer>;
394
+ new (buffer: ArrayBuffer, byteOffset?: number, length?: number): BigInt64Array<ArrayBuffer>;
395
+ new (array: ArrayLike<bigint> | ArrayBuffer): BigInt64Array<ArrayBuffer>;
395
396
 
396
397
  /** The size in bytes of each element in the array. */
397
398
  readonly BYTES_PER_ELEMENT: number;
@@ -400,30 +401,48 @@ interface BigInt64ArrayConstructor {
400
401
  * Returns a new array from a set of elements.
401
402
  * @param items A set of elements to include in the new array object.
402
403
  */
403
- of(...items: bigint[]): BigInt64Array;
404
+ of(...items: bigint[]): BigInt64Array<ArrayBuffer>;
405
+
406
+ /**
407
+ * Creates an array from an array-like or iterable object.
408
+ * @param arrayLike An array-like object to convert to an array.
409
+ */
410
+ from(arrayLike: ArrayLike<bigint>): BigInt64Array<ArrayBuffer>;
404
411
 
405
412
  /**
406
413
  * Creates an array from an array-like or iterable object.
407
- * @param arrayLike An array-like or iterable object to convert to an array.
414
+ * @param arrayLike An array-like object to convert to an array.
408
415
  * @param mapfn A mapping function to call on every element of the array.
409
416
  * @param thisArg Value of 'this' used to invoke the mapfn.
410
417
  */
411
- from(arrayLike: ArrayLike<bigint>): BigInt64Array;
412
- from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array;
413
- }
418
+ from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array<ArrayBuffer>;
419
+
420
+ /**
421
+ * Creates an array from an array-like or iterable object.
422
+ * @param elements An iterable object to convert to an array.
423
+ */
424
+ from(elements: Iterable<bigint>): BigInt64Array<ArrayBuffer>;
414
425
 
426
+ /**
427
+ * Creates an array from an array-like or iterable object.
428
+ * @param elements An iterable object to convert to an array.
429
+ * @param mapfn A mapping function to call on every element of the array.
430
+ * @param thisArg Value of 'this' used to invoke the mapfn.
431
+ */
432
+ from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => bigint, thisArg?: any): BigInt64Array<ArrayBuffer>;
433
+ }
415
434
  declare var BigInt64Array: BigInt64ArrayConstructor;
416
435
 
417
436
  /**
418
437
  * A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the
419
438
  * requested number of bytes could not be allocated, an exception is raised.
420
439
  */
421
- interface BigUint64Array {
440
+ interface BigUint64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
422
441
  /** The size in bytes of each element in the array. */
423
442
  readonly BYTES_PER_ELEMENT: number;
424
443
 
425
444
  /** The ArrayBuffer instance referenced by the array. */
426
- readonly buffer: ArrayBufferLike;
445
+ readonly buffer: TArrayBuffer;
427
446
 
428
447
  /** The length in bytes of the array. */
429
448
  readonly byteLength: number;
@@ -453,7 +472,7 @@ interface BigUint64Array {
453
472
  * @param thisArg An object to which the this keyword can refer in the predicate function.
454
473
  * If thisArg is omitted, undefined is used as the this value.
455
474
  */
456
- every(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
475
+ every(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean, thisArg?: any): boolean;
457
476
 
458
477
  /**
459
478
  * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
@@ -472,7 +491,7 @@ interface BigUint64Array {
472
491
  * @param thisArg An object to which the this keyword can refer in the predicate function.
473
492
  * If thisArg is omitted, undefined is used as the this value.
474
493
  */
475
- filter(predicate: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array;
494
+ filter(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => any, thisArg?: any): BigUint64Array<ArrayBuffer>;
476
495
 
477
496
  /**
478
497
  * Returns the value of the first element in the array where predicate is true, and undefined
@@ -483,7 +502,7 @@ interface BigUint64Array {
483
502
  * @param thisArg If provided, it will be used as the this value for each invocation of
484
503
  * predicate. If it is not provided, undefined is used instead.
485
504
  */
486
- find(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): bigint | undefined;
505
+ find(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean, thisArg?: any): bigint | undefined;
487
506
 
488
507
  /**
489
508
  * Returns the index of the first element in the array where predicate is true, and -1
@@ -494,7 +513,7 @@ interface BigUint64Array {
494
513
  * @param thisArg If provided, it will be used as the this value for each invocation of
495
514
  * predicate. If it is not provided, undefined is used instead.
496
515
  */
497
- findIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): number;
516
+ findIndex(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean, thisArg?: any): number;
498
517
 
499
518
  /**
500
519
  * Performs the specified action for each element in an array.
@@ -503,7 +522,7 @@ interface BigUint64Array {
503
522
  * @param thisArg An object to which the this keyword can refer in the callbackfn function.
504
523
  * If thisArg is omitted, undefined is used as the this value.
505
524
  */
506
- forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array) => void, thisArg?: any): void;
525
+ forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => void, thisArg?: any): void;
507
526
 
508
527
  /**
509
528
  * Determines whether an array includes a certain element, returning true or false as appropriate.
@@ -549,7 +568,7 @@ interface BigUint64Array {
549
568
  * @param thisArg An object to which the this keyword can refer in the callbackfn function.
550
569
  * If thisArg is omitted, undefined is used as the this value.
551
570
  */
552
- map(callbackfn: (value: bigint, index: number, array: BigUint64Array) => bigint, thisArg?: any): BigUint64Array;
571
+ map(callbackfn: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => bigint, thisArg?: any): BigUint64Array<ArrayBuffer>;
553
572
 
554
573
  /**
555
574
  * Calls the specified callback function for all the elements in an array. The return value of
@@ -561,7 +580,7 @@ interface BigUint64Array {
561
580
  * the accumulation. The first call to the callbackfn function provides this value as an argument
562
581
  * instead of an array value.
563
582
  */
564
- reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
583
+ reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array<TArrayBuffer>) => bigint): bigint;
565
584
 
566
585
  /**
567
586
  * Calls the specified callback function for all the elements in an array. The return value of
@@ -573,7 +592,7 @@ interface BigUint64Array {
573
592
  * the accumulation. The first call to the callbackfn function provides this value as an argument
574
593
  * instead of an array value.
575
594
  */
576
- reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
595
+ reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array<TArrayBuffer>) => U, initialValue: U): U;
577
596
 
578
597
  /**
579
598
  * Calls the specified callback function for all the elements in an array, in descending order.
@@ -585,7 +604,7 @@ interface BigUint64Array {
585
604
  * the accumulation. The first call to the callbackfn function provides this value as an
586
605
  * argument instead of an array value.
587
606
  */
588
- reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
607
+ reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array<TArrayBuffer>) => bigint): bigint;
589
608
 
590
609
  /**
591
610
  * Calls the specified callback function for all the elements in an array, in descending order.
@@ -597,7 +616,7 @@ interface BigUint64Array {
597
616
  * the accumulation. The first call to the callbackfn function provides this value as an argument
598
617
  * instead of an array value.
599
618
  */
600
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
619
+ reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array<TArrayBuffer>) => U, initialValue: U): U;
601
620
 
602
621
  /** Reverses the elements in the array. */
603
622
  reverse(): this;
@@ -614,7 +633,7 @@ interface BigUint64Array {
614
633
  * @param start The beginning of the specified portion of the array.
615
634
  * @param end The end of the specified portion of the array.
616
635
  */
617
- slice(start?: number, end?: number): BigUint64Array;
636
+ slice(start?: number, end?: number): BigUint64Array<ArrayBuffer>;
618
637
 
619
638
  /**
620
639
  * Determines whether the specified callback function returns true for any element of an array.
@@ -624,7 +643,7 @@ interface BigUint64Array {
624
643
  * @param thisArg An object to which the this keyword can refer in the predicate function.
625
644
  * If thisArg is omitted, undefined is used as the this value.
626
645
  */
627
- some(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
646
+ some(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean, thisArg?: any): boolean;
628
647
 
629
648
  /**
630
649
  * Sorts the array.
@@ -638,7 +657,7 @@ interface BigUint64Array {
638
657
  * @param begin The index of the beginning of the array.
639
658
  * @param end The index of the end of the array.
640
659
  */
641
- subarray(begin?: number, end?: number): BigUint64Array;
660
+ subarray(begin?: number, end?: number): BigUint64Array<TArrayBuffer>;
642
661
 
643
662
  /** Converts the array to a string by using the current locale. */
644
663
  toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
@@ -647,7 +666,7 @@ interface BigUint64Array {
647
666
  toString(): string;
648
667
 
649
668
  /** Returns the primitive value of the specified object. */
650
- valueOf(): BigUint64Array;
669
+ valueOf(): BigUint64Array<TArrayBuffer>;
651
670
 
652
671
  /** Yields each value in the array. */
653
672
  values(): ArrayIterator<bigint>;
@@ -658,12 +677,13 @@ interface BigUint64Array {
658
677
 
659
678
  [index: number]: bigint;
660
679
  }
661
-
662
680
  interface BigUint64ArrayConstructor {
663
- readonly prototype: BigUint64Array;
664
- new (length?: number): BigUint64Array;
665
- new (array: Iterable<bigint>): BigUint64Array;
666
- new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array;
681
+ readonly prototype: BigUint64Array<ArrayBufferLike>;
682
+ new (length?: number): BigUint64Array<ArrayBuffer>;
683
+ new (array: ArrayLike<bigint> | Iterable<bigint>): BigUint64Array<ArrayBuffer>;
684
+ new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): BigUint64Array<TArrayBuffer>;
685
+ new (buffer: ArrayBuffer, byteOffset?: number, length?: number): BigUint64Array<ArrayBuffer>;
686
+ new (array: ArrayLike<bigint> | ArrayBuffer): BigUint64Array<ArrayBuffer>;
667
687
 
668
688
  /** The size in bytes of each element in the array. */
669
689
  readonly BYTES_PER_ELEMENT: number;
@@ -672,21 +692,39 @@ interface BigUint64ArrayConstructor {
672
692
  * Returns a new array from a set of elements.
673
693
  * @param items A set of elements to include in the new array object.
674
694
  */
675
- of(...items: bigint[]): BigUint64Array;
695
+ of(...items: bigint[]): BigUint64Array<ArrayBuffer>;
696
+
697
+ /**
698
+ * Creates an array from an array-like or iterable object.
699
+ * @param arrayLike An array-like object to convert to an array.
700
+ */
701
+ from(arrayLike: ArrayLike<bigint>): BigUint64Array<ArrayBuffer>;
676
702
 
677
703
  /**
678
704
  * Creates an array from an array-like or iterable object.
679
- * @param arrayLike An array-like or iterable object to convert to an array.
705
+ * @param arrayLike An array-like object to convert to an array.
680
706
  * @param mapfn A mapping function to call on every element of the array.
681
707
  * @param thisArg Value of 'this' used to invoke the mapfn.
682
708
  */
683
- from(arrayLike: ArrayLike<bigint>): BigUint64Array;
684
- from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array;
685
- }
709
+ from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array<ArrayBuffer>;
710
+
711
+ /**
712
+ * Creates an array from an array-like or iterable object.
713
+ * @param elements An iterable object to convert to an array.
714
+ */
715
+ from(elements: Iterable<bigint>): BigUint64Array<ArrayBuffer>;
686
716
 
717
+ /**
718
+ * Creates an array from an array-like or iterable object.
719
+ * @param elements An iterable object to convert to an array.
720
+ * @param mapfn A mapping function to call on every element of the array.
721
+ * @param thisArg Value of 'this' used to invoke the mapfn.
722
+ */
723
+ from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => bigint, thisArg?: any): BigUint64Array<ArrayBuffer>;
724
+ }
687
725
  declare var BigUint64Array: BigUint64ArrayConstructor;
688
726
 
689
- interface DataView {
727
+ interface DataView<TArrayBuffer extends ArrayBufferLike> {
690
728
  /**
691
729
  * Gets the BigInt64 value at the specified byte offset from the start of the view. There is
692
730
  * no alignment constraint; multi-byte values may be fetched from any offset.