UNPKG
@bookbox/core
Version:
latest (0.4.0)
0.4.0
0.3.2
0.3.1
0.3.0
0.2.0
0.1.1
0.1.0
Bookbox — e-book format
@bookbox/core
/
build
/
esm
/
utils
/
iterable.d.ts
6 lines
(5 loc)
•
233 B
TypeScript
View Raw
1
2
3
4
5
6
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>;