Installation
npm install --save @types/range-exclusive
Summary
This package contains type definitions for range-exclusive (https://github.com/emilbayes/range-exclusive).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/range-exclusive.
index.d.ts
export = rangeExclusive;
/**
* Generate a closed range of numbers `[a, b)` with step size `d`
*
* @example
* import rangeExclusive = require('range-exclusive')
*
* rangeExclusive(10) // [1, 2, 3, 4, 5, 6, 7, 8, 9]
* rangeExclusive(3, 9, 3) // [3, 6]
* rangeExclusive(7, 5, -1) // [7, 6]
*/
declare function rangeExclusive(stop: number): number[];
declare function rangeExclusive(
/** @default 1 */
start: number,
stop: number,
/** @default 1 */
// tslint:disable-next-line unified-signatures
stepSize?: number,
): number[];
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by BendingBender.