reports/frontend/node_modules/es-toolkit/dist/math/range.d.ts
jtricerolph 1c411e402e Add settings page for managing forecasting API key and URL via UI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-20 14:37:36 +00:00

39 lines
No EOL
1.4 KiB
TypeScript

//#region src/math/range.d.ts
/**
* Returns an array of numbers from `0` (inclusive) to `end` (exclusive), incrementing by `1`.
*
* @param end - The end number of the range (exclusive).
* @returns An array of numbers from `0` (inclusive) to `end` (exclusive) with a step of `1`.
*
* @example
* // Returns [0, 1, 2, 3]
* range(4);
*/
declare function range(end: number): number[];
/**
* Returns an array of numbers from `start` (inclusive) to `end` (exclusive), incrementing by `1`.
*
* @param start - The starting number of the range (inclusive).
* @param end - The end number of the range (exclusive).
* @returns An array of numbers from `start` (inclusive) to `end` (exclusive) with a step of `1`.
*
* @example
* // Returns [1, 2, 3]
* range(1, 4);
*/
declare function range(start: number, end: number): number[];
/**
* Returns an array of numbers from `start` (inclusive) to `end` (exclusive), incrementing by `step`.
*
* @param start - The starting number of the range (inclusive).
* @param end - The end number of the range (exclusive).
* @param step - The step value for the range.
* @returns An array of numbers from `start` (inclusive) to `end` (exclusive) with the specified `step`.
*
* @example
* // Returns [0, 5, 10, 15]
* range(0, 20, 5);
*/
declare function range(start: number, end: number, step: number): number[];
//#endregion
export { range };