bireader 4.0.5 → 4.0.6

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.
@@ -868,21 +868,21 @@ declare class BiBase<DataType, alwaysBigInt> {
868
868
  *
869
869
  * Note: Errors on strict mode if past end of data.
870
870
  *
871
- * @param {DataType} data - ``Uint8Array`` or ``Buffer`` to replace in data
871
+ * @param {Uint8Array | Buffer} data - ``Uint8Array`` or ``Buffer`` to replace in data
872
872
  * @param {number} offset - Offset to add it at (defaults to current position)
873
873
  * @param {boolean} consume - Move current byte position to end of data (default false)
874
874
  */
875
- replace(data: DataType, offset?: number, consume?: boolean): void;
875
+ replace(data: Uint8Array | Buffer, offset?: number, consume?: boolean): void;
876
876
  /**
877
877
  * Replaces data in data.
878
878
  *
879
879
  * Note: Errors on strict mode.
880
880
  *
881
- * @param {DataType} data - ``Uint8Array`` or ``Buffer`` to replace in data
881
+ * @param {Uint8Array | Buffer} data - ``Uint8Array`` or ``Buffer`` to replace in data
882
882
  * @param {number} offset - Offset to add it at (defaults to current position)
883
883
  * @param {boolean} consume - Move current byte position to end of data (default false)
884
884
  */
885
- overwrite(data: DataType, offset?: number, consume?: boolean): void;
885
+ overwrite(data: Uint8Array | Buffer, offset?: number, consume?: boolean): void;
886
886
  /**
887
887
  * Returns part of data from current byte position to end of data unless supplied.
888
888
  *
@@ -7509,21 +7509,21 @@ declare class BiBaseAsync<DataType, alwaysBigInt> {
7509
7509
  *
7510
7510
  * Note: Errors on strict mode.
7511
7511
  *
7512
- * @param {DataType} data - ``Uint8Array`` or ``Buffer`` to replace in data
7512
+ * @param {Uint8Array | Buffer} data - ``Uint8Array`` or ``Buffer`` to replace in data
7513
7513
  * @param {number} offset - Offset to add it at (defaults to current position)
7514
7514
  * @param {boolean} consume - Move current byte position to end of data (default false)
7515
7515
  */
7516
- replace(data: DataType, offset?: number, consume?: boolean): Promise<ReturnMapping<DataType>>;
7516
+ replace(data: Uint8Array | Buffer, offset?: number, consume?: boolean): Promise<ReturnMapping<DataType>>;
7517
7517
  /**
7518
7518
  * Replaces data in data.
7519
7519
  *
7520
7520
  * Note: Errors on strict mode.
7521
7521
  *
7522
- * @param {DataType} data - ``Uint8Array`` or ``Buffer`` to replace in data
7522
+ * @param {Uint8Array | Buffer} data - ``Uint8Array`` or ``Buffer`` to replace in data
7523
7523
  * @param {number} offset - Offset to add it at (defaults to current position)
7524
7524
  * @param {boolean} consume - Move current byte position to end of data (default false)
7525
7525
  */
7526
- overwrite(data: DataType, offset?: number, consume?: boolean): Promise<ReturnMapping<DataType>>;
7526
+ overwrite(data: Uint8Array | Buffer, offset?: number, consume?: boolean): Promise<ReturnMapping<DataType>>;
7527
7527
  /**
7528
7528
  * Returns part of data from current byte position to end of data unless supplied.
7529
7529
  *
package/dist/cjs/index.js CHANGED
@@ -2683,7 +2683,7 @@ class BiBase {
2683
2683
  *
2684
2684
  * Note: Errors on strict mode if past end of data.
2685
2685
  *
2686
- * @param {DataType} data - ``Uint8Array`` or ``Buffer`` to replace in data
2686
+ * @param {Uint8Array | Buffer} data - ``Uint8Array`` or ``Buffer`` to replace in data
2687
2687
  * @param {number} offset - Offset to add it at (defaults to current position)
2688
2688
  * @param {boolean} consume - Move current byte position to end of data (default false)
2689
2689
  */
@@ -2734,7 +2734,7 @@ class BiBase {
2734
2734
  *
2735
2735
  * Note: Errors on strict mode.
2736
2736
  *
2737
- * @param {DataType} data - ``Uint8Array`` or ``Buffer`` to replace in data
2737
+ * @param {Uint8Array | Buffer} data - ``Uint8Array`` or ``Buffer`` to replace in data
2738
2738
  * @param {number} offset - Offset to add it at (defaults to current position)
2739
2739
  * @param {boolean} consume - Move current byte position to end of data (default false)
2740
2740
  */
@@ -13532,7 +13532,7 @@ class BiBaseAsync {
13532
13532
  *
13533
13533
  * Note: Errors on strict mode.
13534
13534
  *
13535
- * @param {DataType} data - ``Uint8Array`` or ``Buffer`` to replace in data
13535
+ * @param {Uint8Array | Buffer} data - ``Uint8Array`` or ``Buffer`` to replace in data
13536
13536
  * @param {number} offset - Offset to add it at (defaults to current position)
13537
13537
  * @param {boolean} consume - Move current byte position to end of data (default false)
13538
13538
  */
@@ -13590,7 +13590,7 @@ class BiBaseAsync {
13590
13590
  *
13591
13591
  * Note: Errors on strict mode.
13592
13592
  *
13593
- * @param {DataType} data - ``Uint8Array`` or ``Buffer`` to replace in data
13593
+ * @param {Uint8Array | Buffer} data - ``Uint8Array`` or ``Buffer`` to replace in data
13594
13594
  * @param {number} offset - Offset to add it at (defaults to current position)
13595
13595
  * @param {boolean} consume - Move current byte position to end of data (default false)
13596
13596
  */