SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Interface ExecuteHook<STATE, CONTEXT, ARGS>

    Observe/intercept command execution. Registered on the registry per command key — because resolved commands are re-derived, the stable anchor is the registry, not the instance. Executions route through the registry, so this fires for keystrokes, clicks, and programmatic calls alike (the ripple/close + middleware path). beforeExecute returning false cancels. args is the invocation input (ARGS).

    interface ExecuteHook<STATE = any, CONTEXT = any, ARGS = void> {
        beforeExecute?(
            command: ResolvedCommand<STATE, CONTEXT, ARGS>,
            args?: ARGS,
        ): boolean | void | Promise<boolean | void>;
        onError?(
            command: ResolvedCommand<STATE, CONTEXT, ARGS>,
            error: unknown,
            args?: ARGS,
        ): void;
        onExecute?(
            command: ResolvedCommand<STATE, CONTEXT, ARGS>,
            args?: ARGS,
        ): void;
    }

    Type Parameters

    • STATE = any
    • CONTEXT = any
    • ARGS = void

    Hierarchy (View Summary)

    Index