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

    Interface CommandCallback<STATE, CONTEXT, ARGS>

    The action a command runs. ARGS is the per-invocation input (execute(args)) — deliberately a separate type from STATE (the current model value the command reflects, read via getState()). They flow in opposite directions — STATE is output (command → UI, for display/enablement), args is input (UI → command) — and only coincidentally share a type (a font picker is STATE = string and ARGS = string). A toggle is STATE = boolean, ARGS = void (it just toggles). See design/COMMAND-DESIGN.md "arg vs state".

    Type Parameters

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