Interface Factory<DefaultNode>

interface Factory<DefaultNode> {
    controllers: Node<unknown, NodeOptions<unknown, unknown, unknown, unknown>, Record<string, any>, unknown, unknown, unknown, unknown>[];
    options: NodeOptions<unknown, unknown, unknown, unknown>;
    overrides: NodeOptionsOverrides;
    clean(): Promise<void>;
    spawn(options?): Promise<KuboNode>;
    spawn(options?): Promise<DefaultNode>;
}

Type Parameters

Properties

controllers: Node<unknown, NodeOptions<unknown, unknown, unknown, unknown>, Record<string, any>, unknown, unknown, unknown, unknown>[]

The previously created nodes that are still running

options: NodeOptions<unknown, unknown, unknown, unknown>

The default options that will be applied to all nodes

Config overrides that will be applied to specific node types

Methods