@bluelibs/runner - v5.5.0
    Preparing search index...

    Interface IHookDefinition<TDependencies, TOn, TMeta>

    interface IHookDefinition<
        TDependencies extends DependencyMapType = {},
        TOn extends OnType = any,
        TMeta extends ITaskMeta = any,
    > {
        dependencies?: TDependencies | (() => TDependencies);
        id: string;
        meta?: TMeta;
        on: TOn;
        order?: number;
        run: (
            event: IEventEmission<
                TOn extends "*"
                    ? any
                    : TOn extends readonly IEventDefinition<any>[]
                        ? CommonPayload<TOn>
                        : ExtractEventPayload<TOn>,
            >,
            dependencies: DependencyValuesType<TDependencies>,
        ) => Promise<any>;
        tags?: TagType[];
        throws?: ThrowsList;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    dependencies?: TDependencies | (() => TDependencies)
    id: string
    meta?: TMeta
    on: TOn
    order?: number

    Listener execution order. Lower numbers run first.

    run: (
        event: IEventEmission<
            TOn extends "*"
                ? any
                : TOn extends readonly IEventDefinition<any>[]
                    ? CommonPayload<TOn>
                    : ExtractEventPayload<TOn>,
        >,
        dependencies: DependencyValuesType<TDependencies>,
    ) => Promise<any>
    tags?: TagType[]
    throws?: ThrowsList

    Declares which typed errors are part of this hook's contract. Declarative only — does not imply DI or enforcement.