zzz-pc-view 0.0.68 → 0.0.69

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zzz-pc-view",
3
- "version": "0.0.68",
3
+ "version": "0.0.69",
4
4
  "main": "src/index.umd.js",
5
5
  "module": "src/index.es.js",
6
6
  "types": "src/index.d.ts",
@@ -429,7 +429,7 @@ export declare const toFlat: <T>(list: T[], childrenKey: KeyMatch<T, undefined |
429
429
  )
430
430
  * // 输出 { id: '2-1', isLeaf: true }
431
431
  */
432
- export declare const findLeafNode: <T>(list: T[], childrenKey: KeyMatch<T, T[] | undefined>, leafNodeFilter?: KeyMatch<T, boolean | undefined> | ((node: T) => boolean)) => T | null;
432
+ export declare const findLeafNode: <T>(list: T[], childrenKey: KeyMatch<T, T[] | undefined | null>, leafNodeFilter?: KeyMatch<T, boolean | undefined> | ((node: T) => boolean)) => T | null;
433
433
  /**
434
434
  * 在给定的列表中查找所有叶子节点。
435
435
  * @template T 树节点的数据类型。
@@ -566,5 +566,5 @@ export declare const findLeafNode: <T>(list: T[], childrenKey: KeyMatch<T, T[] |
566
566
  { id: '1-1-1', isLeaf: true }
567
567
  ]
568
568
  */
569
- export declare const findAllLeafNodes: <T>(list: T[], childrenKey: KeyMatch<T, T[] | undefined>, leafNodeFilter?: KeyMatch<T, boolean | undefined> | ((node: T) => boolean)) => T[];
569
+ export declare const findAllLeafNodes: <T>(list: T[], childrenKey: KeyMatch<T, T[] | undefined | null>, leafNodeFilter?: KeyMatch<T, boolean | undefined> | ((node: T) => boolean)) => T[];
570
570
  export {};