UNPKG

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