@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 +2 -2
- package/package.json +1 -1
- package/src/types.ts +5 -7
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> =
|
|
57
|
+
export type Unsaved<T> = Omit<T, 'id' | 'created' | 'updated'> & {
|
|
58
58
|
id?: string;
|
|
59
59
|
created?: UnixTimestampNumber;
|
|
60
60
|
updated?: UnixTimestampNumber;
|
|
61
|
-
}
|
|
61
|
+
};
|
|
62
62
|
export type UnsavedId<T> = Omit<T, 'id'> & {
|
|
63
63
|
id?: string;
|
|
64
64
|
};
|
package/package.json
CHANGED
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
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|