UNPKG

nhb-toolbox

Version:

A versatile collection of smart, efficient, and reusable utility functions and classes for everyday development needs.

11 lines 658 B
import type { NumberType, RangedNumbers, RangeOptions } from './types'; /** * * Function to get numbers within a range based on the provided `NumberType` and options. * * Returns either a string or an array of numbers based on the `getAs` property in options. * * @param type - The type of numbers to generate ('random', 'prime', etc.). * @param options - Options to configure number generation, including range and formatting. * @returns Either a string or an array of numbers. */ export declare function getNumbersInRange<T extends boolean = false>(type?: NumberType, options?: RangeOptions<T>): RangedNumbers<T>; //# sourceMappingURL=range.d.ts.map