1.0.3 • Published 6 months ago
@types/byte-range v1.0.3
Installation
npm install --save @types/byte-range
Summary
This package contains type definitions for byte-range (https://github.com/lukechilds/byte-range#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/byte-range.
index.d.ts
// Type definitions for byte-range 1.0
// Project: https://github.com/lukechilds/byte-range#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = byteRange;
/**
* Calculates integer ranges for a given number of bytes.
*
* @param bytes Number of bytes to return the integer range for. Must be a positive integer.
*/
declare function byteRange(bytes: number, options?: byteRange.Options): byteRange.ByteRange;
declare namespace byteRange {
/**
* Precomputed byte range for an unsigned 8 bit integer.
*/
const uint8: ByteRange;
/**
* Precomputed byte range for an unsigned 16 bit integer.
*/
const uint16: ByteRange;
/**
* Precomputed byte range for an unsigned 32 bit integer.
*/
const uint32: ByteRange;
/**
* Precomputed byte range for an signed 8 bit integer.
*/
const int8: ByteRange;
/**
* Precomputed byte range for an signed 16 bit integer.
*/
const int16: ByteRange;
/**
* Precomputed byte range for an signed 32 bit integer.
*/
const int32: ByteRange;
interface Options {
/**
* @default false
*/
signed?: boolean | undefined;
}
type ByteRange = [number, number];
}
Additional Details
- Last updated: Thu, 08 Jul 2021 00:35:46 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by BendingBender.