@aiszlab/relax 1.2.11-beta.6 → 1.2.11-beta.8

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.
@@ -22,8 +22,8 @@ class Tree {
22
22
  }
23
23
  collect(leaf) {
24
24
  __classPrivateFieldGet(this, _Tree_groupedLeaves, "f").has(leaf.key)
25
- ? __classPrivateFieldGet(this, _Tree_groupedLeaves, "f").set(leaf.key, new Set([leaf]))
26
- : __classPrivateFieldGet(this, _Tree_groupedLeaves, "f").get(leaf.key).add(leaf);
25
+ ? __classPrivateFieldGet(this, _Tree_groupedLeaves, "f").get(leaf.key).add(leaf)
26
+ : __classPrivateFieldGet(this, _Tree_groupedLeaves, "f").set(leaf.key, new Set([leaf]));
27
27
  }
28
28
  toggle(key, toggledKeys) {
29
29
  const hasToggled = toggledKeys.has(key);
package/dist/index.d.ts CHANGED
@@ -38,4 +38,5 @@ export { isFunction } from './is/is-function';
38
38
  */
39
39
  export { type Nullable } from './utils/null-able';
40
40
  export { type Partialable } from './utils/partial-able';
41
+ export { type RequiredIn } from './utils/required-in';
41
42
  export { unique, uniqueBy } from './utils/unique';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @description
3
+ * require some fields
4
+ */
5
+ export type RequiredIn<T, K extends keyof T> = Required<Pick<T, K>> & Omit<T, K>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiszlab/relax",
3
- "version": "1.2.11-beta.6",
3
+ "version": "1.2.11-beta.8",
4
4
  "description": "react utils collection",
5
5
  "type": "module",
6
6
  "exports": {