UNPKG

@bookbox/core

Version:

Bookbox — e-book format

6 lines (5 loc) 233 B
export declare type IterableGetterOptions<T> = { getChildren: (node: T) => T[]; isLeaf: (node: T) => boolean; }; export declare function iterableTreeGetter<T>(options: IterableGetterOptions<T>): (schema: T[]) => Iterable<T>;