You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -90,13 +89,11 @@ export class NumberModule extends SimpleModuleBase {
90
89
*
91
90
* @param options Upper bound or options object.
92
91
* @param options.min Lower bound for generated number, inclusive. Defaults to `0.0`.
93
-
* @param options.max Upper bound for generated number, exclusive, unless `multipleOf`, `precision` or `fractionDigits` are passed. Defaults to `1.0`.
94
-
* @param options.precision Deprecated alias for `multipleOf`. Only one of `multipleOf`, `precision` or `fractionDigits` should be passed.
95
-
* @param options.multipleOf The generated number will be a multiple of this parameter. Only one of `multipleOf`, `precision` or `fractionDigits` should be passed.
96
-
* @param options.fractionDigits The maximum number of digits to appear after the decimal point, for example `2` will round to 2 decimal points. Only one of `multipleOf`, `precision` or `fractionDigits` should be passed.
92
+
* @param options.max Upper bound for generated number, exclusive, unless `multipleOf` or `fractionDigits` are passed. Defaults to `1.0`.
93
+
* @param options.multipleOf The generated number will be a multiple of this parameter. Only one of `multipleOf` or `fractionDigits` should be passed.
94
+
* @param options.fractionDigits The maximum number of digits to appear after the decimal point, for example `2` will round to 2 decimal points. Only one of `multipleOf` or `fractionDigits` should be passed.
97
95
*
98
96
* @throws When `min` is greater than `max`.
99
-
* @throws When `precision` is negative.
100
97
* @throws When `multipleOf` is negative.
101
98
* @throws When `fractionDigits` is negative.
102
99
* @throws When `fractionDigits` and `multipleOf` is passed in the same options object.
@@ -125,23 +122,17 @@ export class NumberModule extends SimpleModuleBase {
125
122
*/
126
123
min?: number;
127
124
/**
128
-
* Upper bound for generated number, exclusive, unless `multipleOf`, `precision` or `fractionDigits` are passed.
125
+
* Upper bound for generated number, exclusive, unless `multipleOf` or `fractionDigits` are passed.
129
126
*
130
127
* @default 1.0
131
128
*/
132
129
max?: number;
133
130
/**
134
-
* The maximum number of digits to appear after the decimal point, for example `2` will round to 2 decimal points. Only one of `multipleOf`, `precision` or `fractionDigits` should be passed.
131
+
* The maximum number of digits to appear after the decimal point, for example `2` will round to 2 decimal points. Only one of `multipleOf` or `fractionDigits` should be passed.
135
132
*/
136
133
fractionDigits?: number;
137
134
/**
138
-
* Deprecated alias for `multipleOf`. Only one of `multipleOf`, `precision` or `fractionDigits` should be passed.
139
-
*
140
-
* @deprecated Use `multipleOf` instead.
141
-
*/
142
-
precision?: number;
143
-
/**
144
-
* The generated number will be a multiple of this parameter. Only one of `multipleOf`, `precision` or `fractionDigits` should be passed.
135
+
* The generated number will be a multiple of this parameter. Only one of `multipleOf` or `fractionDigits` should be passed.
145
136
*/
146
137
multipleOf?: number;
147
138
}={}
@@ -156,23 +147,10 @@ export class NumberModule extends SimpleModuleBase {
0 commit comments