util.d.ts 555 B

1234567891011121314
  1. /** export 一些字段常量 */
  2. /** 在同层级,同一父节点下的节点索引顺序 */
  3. export declare const NODE_INDEX_FIELD = "nodeIndex";
  4. /** child 节点数量 */
  5. export declare const CHILD_NODE_COUNT = "childNodeCount";
  6. /** 节点的祖先节点 */
  7. export declare const NODE_ANCESTORS_FIELD = "nodeAncestor";
  8. interface Options {
  9. field?: string | string[];
  10. fields?: string | string[];
  11. }
  12. export declare function getField(options: Options, defaultField?: string): string;
  13. export declare function getAllNodes(root: any): any[];
  14. export {};