1 | import {CollectionBuilder, Collection, SerializePath, SerializeOptions} from './StructureNodes'
|
2 |
|
3 | export interface ChildResolverOptions {
|
4 | index: number
|
5 | parent: Collection
|
6 | parentPath?: SerializePath
|
7 | serializeOptions?: SerializeOptions
|
8 | }
|
9 |
|
10 | export type ItemChild = CollectionBuilder | Collection | Function | undefined
|
11 |
|
12 | interface ChildObservable {
|
13 | subscribe: (child: ItemChild | Promise<ItemChild>) => {}
|
14 | }
|
15 |
|
16 | export interface ChildResolver {
|
17 | (itemId: string, options: ChildResolverOptions):
|
18 | | ItemChild
|
19 | | Promise<ItemChild>
|
20 | | ChildObservable
|
21 | | undefined
|
22 | }
|