Type alias SettingsTreeAction

SettingsTreeAction: {
    action: "update";
    payload: {
        path: readonly string[];
    } & DistributivePick<SettingsTreeFieldValue, "input" | "value">;
} | {
    action: "perform-node-action";
    payload: {
        id: string;
        path: readonly string[];
    };
}

Represents actions that can be dispatched to source of the SettingsTree to implement edits and updates.

Type declaration

  • action: "update"
  • payload: {
        path: readonly string[];
    } & DistributivePick<SettingsTreeFieldValue, "input" | "value">

Type declaration

  • action: "perform-node-action"
  • payload: {
        id: string;
        path: readonly string[];
    }
    • id: string
    • path: readonly string[]