Logos DX
    Preparing search index...

    Interface RunResult<F>

    Result returned from run()/runSync() after executing all hook callbacks.

    interface RunResult<F extends (...args: any[]) => any = (...args: any[]) => any> {
        args: Parameters<F>;
        result: Awaited<ReturnType<F>> | undefined;
        returned: boolean;
        scope: HookScope;
    }

    Type Parameters

    • F extends (...args: any[]) => any = (...args: any[]) => any
    Index

    Properties

    args: Parameters<F>

    Current arguments (possibly modified by callbacks)

    result: Awaited<ReturnType<F>> | undefined

    Result value (if set via ctx.returns())

    returned: boolean

    Whether a callback short-circuited via return ctx.returns() or return ctx.args()

    scope: HookScope

    The scope used during this run (pass to subsequent runs to share state)