@softwear/latestcollectioncore 1.0.124 → 1.0.126

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.
@@ -1 +1 @@
1
- export default function (object: any): any;
1
+ export default function <T>(object: T): T;
package/dist/types.d.ts CHANGED
@@ -137,6 +137,8 @@ interface SkuI {
137
137
  set?: string;
138
138
  erpSource?: string;
139
139
  genderSupplier?: string;
140
+ __created?: string;
141
+ __modified?: string;
140
142
  }
141
143
  interface DocumentItemI {
142
144
  barcode: barcode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softwear/latestcollectioncore",
3
- "version": "1.0.124",
3
+ "version": "1.0.126",
4
4
  "description": "Core functions for LatestCollections applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/deepCopy.ts CHANGED
@@ -1,4 +1,4 @@
1
- export default function (object: any): any {
1
+ export default function <T>(object: T): T {
2
2
  if (!object) return object
3
- return JSON.parse(JSON.stringify(object))
3
+ return JSON.parse(JSON.stringify(object)) as T
4
4
  }
package/src/types.ts CHANGED
@@ -146,6 +146,8 @@ interface SkuI {
146
146
  set?: string
147
147
  erpSource?: string
148
148
  genderSupplier?: string
149
+ __created?: string
150
+ __modified?: string
149
151
  }
150
152
 
151
153
  interface DocumentItemI {