@nu-art/ts-common 0.200.55 → 0.200.56
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/package.json +1 -1
- package/utils/types.d.ts +4 -1
package/package.json
CHANGED
package/utils/types.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ export type DB_Object = DB_BaseObject & {
|
|
|
56
56
|
__updated: number;
|
|
57
57
|
};
|
|
58
58
|
export type UniqueId = string;
|
|
59
|
-
export type PreDB<T extends DB_Object> = PartialProperties<T, keyof DB_Object>;
|
|
59
|
+
export type PreDB<T extends DB_Object, K extends keyof T = never> = PartialProperties<T, keyof DB_Object | K>;
|
|
60
60
|
export type OmitDBObject<T extends DB_Object> = Omit<T, keyof DB_Object>;
|
|
61
61
|
export type Draftable = {
|
|
62
62
|
_isDraft: boolean;
|
|
@@ -69,6 +69,9 @@ export type AuditBy = {
|
|
|
69
69
|
auditBy: string;
|
|
70
70
|
auditAt: Timestamp;
|
|
71
71
|
};
|
|
72
|
+
export type AuditableV2 = {
|
|
73
|
+
_auditorId: string;
|
|
74
|
+
};
|
|
72
75
|
export type Timestamp = {
|
|
73
76
|
timestamp: number;
|
|
74
77
|
pretty: string;
|