From 0b2fa1ae96c6aabb7bcaae8d7f5f90df86d43786 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Sat, 17 Dec 2022 19:59:25 +0100 Subject: feat(number)!: change int default params (#1643) --- src/modules/number/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/number/index.ts b/src/modules/number/index.ts index 62036ab1..d3f27453 100644 --- a/src/modules/number/index.ts +++ b/src/modules/number/index.ts @@ -22,7 +22,7 @@ export class NumberModule { * * @param options Maximum value or options object. Defaults to `{}`. * @param options.min Lower bound for generated number. Defaults to `0`. - * @param options.max Upper bound for generated number. Defaults to `min + 99999`. + * @param options.max Upper bound for generated number. Defaults to `Number.MAX_SAFE_INTEGER`. * * @throws When options define `max < min`. * @@ -42,7 +42,7 @@ export class NumberModule { options = { max: options }; } - const { min = 0, max = min + 99999 } = options; + const { min = 0, max = Number.MAX_SAFE_INTEGER } = options; const effectiveMin = Math.ceil(min); const effectiveMax = Math.floor(max); -- cgit v1.2.3