umt 2.9.0 → 2.10.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.
Files changed (34) hide show
  1. package/module/Validate/index.d.ts +1 -0
  2. package/module/Validate/index.js +1 -0
  3. package/module/Validate/index.js.map +1 -1
  4. package/module/Validate/object/core.d.ts +3 -2
  5. package/module/Validate/object/core.js +5 -0
  6. package/module/Validate/object/core.js.map +1 -1
  7. package/module/Validate/object/index.d.ts +1 -0
  8. package/module/Validate/object/index.js +1 -0
  9. package/module/Validate/object/index.js.map +1 -1
  10. package/module/Validate/object/optional.d.ts +2 -0
  11. package/module/Validate/object/optional.js +15 -0
  12. package/module/Validate/object/optional.js.map +1 -0
  13. package/module/Validate/type.d.ts +9 -2
  14. package/module/es5/Validate/index.d.ts +1 -0
  15. package/module/es5/Validate/index.js +11 -0
  16. package/module/es5/Validate/object/core.d.ts +3 -2
  17. package/module/es5/Validate/object/core.js +5 -0
  18. package/module/es5/Validate/object/index.d.ts +1 -0
  19. package/module/es5/Validate/object/index.js +11 -0
  20. package/module/es5/Validate/object/optional.d.ts +2 -0
  21. package/module/es5/Validate/object/optional.js +20 -0
  22. package/module/es5/Validate/type.d.ts +9 -2
  23. package/module/es5/tsconfig.tsbuildinfo +1 -1
  24. package/module/es5/types/object/index.d.ts +1 -0
  25. package/module/es5/types/object/index.js +11 -0
  26. package/module/es5/types/object/pickPartial.d.ts +6 -0
  27. package/module/es5/types/object/pickPartial.js +5 -0
  28. package/module/types/object/index.d.ts +1 -0
  29. package/module/types/object/index.js +1 -0
  30. package/module/types/object/index.js.map +1 -1
  31. package/module/types/object/pickPartial.d.ts +6 -0
  32. package/module/types/object/pickPartial.js +2 -0
  33. package/module/types/object/pickPartial.js.map +1 -0
  34. package/package.json +3 -3
@@ -1,3 +1,4 @@
1
1
  export * from "./pickDeep";
2
2
  export * from "./pickDeepKey";
3
+ export * from "./pickPartial";
3
4
  export * from "./shallowObjectValue";
@@ -25,6 +25,17 @@ Object.keys(_pickDeepKey).forEach(function (key) {
25
25
  }
26
26
  });
27
27
  });
28
+ var _pickPartial = require("./pickPartial");
29
+ Object.keys(_pickPartial).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _pickPartial[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function get() {
35
+ return _pickPartial[key];
36
+ }
37
+ });
38
+ });
28
39
  var _shallowObjectValue = require("./shallowObjectValue");
29
40
  Object.keys(_shallowObjectValue).forEach(function (key) {
30
41
  if (key === "default" || key === "__esModule") return;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Makes specified keys optional in an object type
3
+ * @template T - The object type
4
+ * @template K - The keys to make optional
5
+ */
6
+ export type PickPartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -1,3 +1,4 @@
1
1
  export * from "./pickDeep";
2
2
  export * from "./pickDeepKey";
3
+ export * from "./pickPartial";
3
4
  export * from "./shallowObjectValue";
@@ -1,4 +1,5 @@
1
1
  export * from "./pickDeep";
2
2
  export * from "./pickDeepKey";
3
+ export * from "./pickPartial";
3
4
  export * from "./shallowObjectValue";
4
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/object/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/object/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Makes specified keys optional in an object type
3
+ * @template T - The object type
4
+ * @template K - The keys to make optional
5
+ */
6
+ export type PickPartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=pickPartial.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pickPartial.js","sourceRoot":"","sources":["../../../src/types/object/pickPartial.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -43,7 +43,7 @@
43
43
  "exports": {
44
44
  ".": {
45
45
  "import": "./module/index.js",
46
- "types": "./module/index.d.js"
46
+ "types": "./module/index.d.ts"
47
47
  }
48
48
  },
49
49
  "files": [
@@ -80,6 +80,6 @@
80
80
  "ts-node": "bun run build && ts-node --project tmp/tsconfig.json tmp/src/index.ts"
81
81
  },
82
82
  "type": "module",
83
- "types": "module/index.d.js",
84
- "version": "2.9.0"
83
+ "types": "module/index.d.ts",
84
+ "version": "2.10.0"
85
85
  }