@naturalcycles/js-lib 15.14.0 → 15.15.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.
@@ -3,6 +3,7 @@ import type { IsoDate, UnixTimestamp, UnixTimestampMillis } from '../types.js';
3
3
  type ZodBranded<T, B> = T & Record<'_zod', Record<'output', number & B>>;
4
4
  export type ZodBrandedString<B> = ZodBranded<z.ZodString, B>;
5
5
  export type ZodBrandedInt<B> = ZodBranded<z.ZodInt, B>;
6
+ export type ZodBrandedNumber<B> = ZodBranded<z.ZodNumber, B>;
6
7
  export declare const TS_2500 = 16725225600;
7
8
  export declare const TS_2000 = 946684800;
8
9
  export declare const zUnixTimestamp: () => ZodBrandedInt<UnixTimestamp>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/js-lib",
3
3
  "type": "module",
4
- "version": "15.14.0",
4
+ "version": "15.15.0",
5
5
  "dependencies": {
6
6
  "tslib": "^2",
7
7
  "zod": "^3"
@@ -4,6 +4,7 @@ import type { IsoDate, UnixTimestamp, UnixTimestampMillis } from '../types.js'
4
4
  type ZodBranded<T, B> = T & Record<'_zod', Record<'output', number & B>>
5
5
  export type ZodBrandedString<B> = ZodBranded<z.ZodString, B>
6
6
  export type ZodBrandedInt<B> = ZodBranded<z.ZodInt, B>
7
+ export type ZodBrandedNumber<B> = ZodBranded<z.ZodNumber, B>
7
8
 
8
9
  export const TS_2500 = 16725225600 // 2500-01-01
9
10
  export const TS_2000 = 946684800 // 2000-01-01