typeson-registry 7.0.1 → 7.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -2369,8 +2369,6 @@
2369
2369
  }
2370
2370
  };
2371
2371
 
2372
- /* eslint-env browser, node */
2373
-
2374
2372
  // Support all kinds of typed arrays (views of ArrayBuffers)
2375
2373
 
2376
2374
  /**
@@ -2383,7 +2381,8 @@
2383
2381
  * Uint8ClampedArrayConstructor|Int16ArrayConstructor|
2384
2382
  * Uint16ArrayConstructor|Int32ArrayConstructor|
2385
2383
  * Uint32ArrayConstructor|Float32ArrayConstructor|
2386
- * Float64ArrayConstructor
2384
+ * Float64ArrayConstructor|
2385
+ * BigInt64ArrayConstructor|BigUint64ArrayConstructor
2387
2386
  * } TypedArray
2388
2387
  * @returns {void}
2389
2388
  */
@@ -2416,13 +2415,12 @@
2416
2415
  // Those constructors are added in ES6 as a group.
2417
2416
  // If we have Int8Array, we can assume the rest also exists.
2418
2417
 
2419
- [Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array].forEach(function (TypedArray) {
2418
+ [Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array].concat(_toConsumableArray$1(typeof BigInt64Array === 'function' ? [BigInt64Array, BigUint64Array]
2419
+ /* c8 ignore next */ : [])).forEach(function (TypedArray) {
2420
2420
  return create$1(TypedArray);
2421
2421
  });
2422
2422
  }
2423
2423
 
2424
- /* eslint-env browser, node */
2425
-
2426
2424
  /**
2427
2425
  * @type {import('typeson').TypeSpecSet}
2428
2426
  */
@@ -2434,7 +2432,8 @@
2434
2432
  * Int16ArrayConstructor|Uint16ArrayConstructor|
2435
2433
  * Int32ArrayConstructor|Uint32ArrayConstructor|
2436
2434
  * Float32ArrayConstructor|
2437
- * Float64ArrayConstructor} TypedArrayConstructor
2435
+ * Float64ArrayConstructor|
2436
+ * BigInt64ArrayConstructor|BigUint64ArrayConstructor} TypedArrayConstructor
2438
2437
  */
2439
2438
 
2440
2439
  /**
@@ -2507,7 +2506,8 @@
2507
2506
  if (typeof Int8Array === 'function') {
2508
2507
  // Those constructors are added in ES6 as a group.
2509
2508
  // If we have Int8Array, we can assume the rest also exists.
2510
- [Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array].forEach(function (TypedArray) {
2509
+ [Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array].concat(_toConsumableArray$1(typeof BigInt64Array === 'function' ? [BigInt64Array, BigUint64Array]
2510
+ /* c8 ignore next */ : [])).forEach(function (TypedArray) {
2511
2511
  return create(TypedArray);
2512
2512
  });
2513
2513
  }