Installation
npm install --save @types/random-number
Summary
This package contains type definitions for random-number (https://github.com/ashnur/random-number).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/random-number.
type Generator = (min?: number | null, max?: number | null, integer?: boolean | null) => number;
interface UnparsedOptions {
min?: number | undefined;
max?: number | undefined;
integer?: boolean | undefined;
}
interface Options {
min: number;
max: number;
integer: boolean;
}
interface RandomNumber {
(options?: UnparsedOptions): number;
generator(options?: UnparsedOptions): Generator;
defaults(options?: UnparsedOptions): Options;
}
declare const randomNumber: RandomNumber;
export = randomNumber;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by OpenByteDev.