weasel API - v0.8.0
    Preparing search index...

    Variable ActionDisabledReasonConst Experimental

    ActionDisabledReason: {
        NotApplicable: "not-applicable";
        PredicateThrew: "predicate-threw";
        SceneEmpty: "scene-empty";
        SelectionRequired: "selection-required";
    } = ...

    Closed enum of reasons an action might report itself as disabled. The consumer (palette, menu, etc.) maps these symbolic values to display strings via its own label map — see demo/CommandPalette.tsx for the canonical mapping.

    Type Declaration

    • ReadonlyNotApplicable: "not-applicable"
    • ReadonlyPredicateThrew: "predicate-threw"

      Sentinel: the predicate threw. Surfaced by evaluateEnabled's catch.

    • ReadonlySceneEmpty: "scene-empty"
    • ReadonlySelectionRequired: "selection-required"