@naturalcycles/js-lib 14.206.1 → 14.206.2

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
@@ -54,11 +54,11 @@ export type Saved<T> = T & {
54
54
  export type SavedId<T> = T & {
55
55
  id: string;
56
56
  };
57
- export type Unsaved<T> = T extends AnyObject ? Omit<T, 'id' | 'created' | 'updated'> & {
57
+ export type Unsaved<T> = Omit<T, 'id' | 'created' | 'updated'> & {
58
58
  id?: string;
59
59
  created?: UnixTimestampNumber;
60
60
  updated?: UnixTimestampNumber;
61
- } : T;
61
+ };
62
62
  export type UnsavedId<T> = Omit<T, 'id'> & {
63
63
  id?: string;
64
64
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/js-lib",
3
- "version": "14.206.1",
3
+ "version": "14.206.2",
4
4
  "scripts": {
5
5
  "prepare": "husky install",
6
6
  "build-prod": "build-prod-esm-cjs",
package/src/types.ts CHANGED
@@ -71,13 +71,11 @@ export type SavedId<T> = T & {
71
71
  id: string
72
72
  }
73
73
 
74
- export type Unsaved<T> = T extends AnyObject
75
- ? Omit<T, 'id' | 'created' | 'updated'> & {
76
- id?: string
77
- created?: UnixTimestampNumber
78
- updated?: UnixTimestampNumber
79
- }
80
- : T
74
+ export type Unsaved<T> = Omit<T, 'id' | 'created' | 'updated'> & {
75
+ id?: string
76
+ created?: UnixTimestampNumber
77
+ updated?: UnixTimestampNumber
78
+ }
81
79
 
82
80
  export type UnsavedId<T> = Omit<T, 'id'> & {
83
81
  id?: string