@naturalcycles/js-lib 14.141.0 → 14.142.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 CHANGED
@@ -163,13 +163,21 @@ export type UnixTimestampMillisNumber = number;
163
163
  * @deprecated use UnixTimestampNumber
164
164
  */
165
165
  export type UnixTimestamp = number;
166
+ export type NumberOfSeconds = number;
167
+ export type NumberOfMilliseconds = number;
166
168
  /**
167
169
  * Same as `number`, but with semantic meaning that it's an Integer.
168
170
  */
169
171
  export type Integer = number;
172
+ /**
173
+ * Used as a compact representation of truthy value.
174
+ * undefined ('' or other short falsy value) should be used as falsy value.
175
+ */
176
+ export type ShortBoolean = '1';
170
177
  export type Base64String = string;
171
178
  export type Base64UrlString = string;
172
179
  export type JWTString = string;
180
+ export type SemVerString = string;
173
181
  /**
174
182
  * Named type for JSON.parse / JSON.stringify second argument
175
183
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/js-lib",
3
- "version": "14.141.0",
3
+ "version": "14.142.0",
4
4
  "scripts": {
5
5
  "prepare": "husky install",
6
6
  "build-prod": "build-prod-esm-cjs",
package/src/types.ts CHANGED
@@ -222,15 +222,26 @@ export type UnixTimestampMillisNumber = number
222
222
  */
223
223
  export type UnixTimestamp = number
224
224
 
225
+ export type NumberOfSeconds = number
226
+ export type NumberOfMilliseconds = number
227
+
225
228
  /**
226
229
  * Same as `number`, but with semantic meaning that it's an Integer.
227
230
  */
228
231
  export type Integer = number
229
232
 
233
+ /**
234
+ * Used as a compact representation of truthy value.
235
+ * undefined ('' or other short falsy value) should be used as falsy value.
236
+ */
237
+ export type ShortBoolean = '1'
238
+
230
239
  export type Base64String = string
231
240
  export type Base64UrlString = string
232
241
  export type JWTString = string
233
242
 
243
+ export type SemVerString = string
244
+
234
245
  /**
235
246
  * Named type for JSON.parse / JSON.stringify second argument
236
247
  */