@naturalcycles/js-lib 14.242.0 → 14.243.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types.d.ts +8 -0
- package/package.json +1 -1
- package/src/types.ts +8 -0
package/dist/types.d.ts
CHANGED
|
@@ -180,10 +180,18 @@ export type NumberOfHours = number;
|
|
|
180
180
|
export type NumberOfMinutes = number;
|
|
181
181
|
export type NumberOfSeconds = number;
|
|
182
182
|
export type NumberOfMilliseconds = number;
|
|
183
|
+
/**
|
|
184
|
+
* Integer between 0 and 100 (inclusive).
|
|
185
|
+
*/
|
|
186
|
+
export type NumberOfPercent = number;
|
|
183
187
|
/**
|
|
184
188
|
* Same as `number`, but with semantic meaning that it's an Integer.
|
|
185
189
|
*/
|
|
186
190
|
export type Integer = number;
|
|
191
|
+
export type PositiveInteger = number;
|
|
192
|
+
export type NonNegativeInteger = number;
|
|
193
|
+
export type PositiveNumber = number;
|
|
194
|
+
export type NonNegativeNumber = number;
|
|
187
195
|
/**
|
|
188
196
|
* Convenience type alias, that allows to write this:
|
|
189
197
|
*
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -237,11 +237,19 @@ export type NumberOfHours = number
|
|
|
237
237
|
export type NumberOfMinutes = number
|
|
238
238
|
export type NumberOfSeconds = number
|
|
239
239
|
export type NumberOfMilliseconds = number
|
|
240
|
+
/**
|
|
241
|
+
* Integer between 0 and 100 (inclusive).
|
|
242
|
+
*/
|
|
243
|
+
export type NumberOfPercent = number
|
|
240
244
|
|
|
241
245
|
/**
|
|
242
246
|
* Same as `number`, but with semantic meaning that it's an Integer.
|
|
243
247
|
*/
|
|
244
248
|
export type Integer = number
|
|
249
|
+
export type PositiveInteger = number
|
|
250
|
+
export type NonNegativeInteger = number
|
|
251
|
+
export type PositiveNumber = number
|
|
252
|
+
export type NonNegativeNumber = number
|
|
245
253
|
|
|
246
254
|
/**
|
|
247
255
|
* Convenience type alias, that allows to write this:
|