@types/range-parser
- Version 1.2.7
- Published
- 4.62 kB
- No dependencies
- MIT license
Install
npm i @types/range-parser
yarn add @types/range-parser
pnpm add @types/range-parser
Overview
TypeScript definitions for range-parser
Index
Functions
Interfaces
Type Aliases
Functions
function RangeParser
RangeParser: ( size: number, str: string, options?: RangeParser.Options) => RangeParser.Result | RangeParser.Ranges;
When ranges are returned, the array has a "type" property which is the type of range that is required (most commonly, "bytes"). Each array element is an object with a "start" and "end" property for the portion of the range.
Returns
-1
when unsatisfiable and-2
when syntactically invalid, ranges otherwise.
Interfaces
Type Aliases
type Result
type Result = ResultUnsatisfiable | ResultInvalid;
type ResultInvalid
type ResultInvalid = -2;
type ResultUnsatisfiable
type ResultUnsatisfiable = -1;
Package Files (1)
Dependencies (0)
No dependencies.
Dev Dependencies (0)
No dev dependencies.
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/range-parser
.
- Markdown[](https://www.jsdocs.io/package/@types/range-parser)
- HTML<a href="https://www.jsdocs.io/package/@types/range-parser"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 1821 ms. - Missing or incorrect documentation? Open an issue for this package.