Home / Type/ Action Type — ui Architecture

Action Type — ui Architecture

Architecture documentation for the Action type/interface in use-toast.ts from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  c43a79af_4f4f_0af1_3ee5_1f51cbaa8829["Action"]
  0ac37ef4_ee03_7234_1fa3_be05404864ce["use-toast.ts"]
  c43a79af_4f4f_0af1_3ee5_1f51cbaa8829 -->|defined in| 0ac37ef4_ee03_7234_1fa3_be05404864ce
  style c43a79af_4f4f_0af1_3ee5_1f51cbaa8829 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/default/hooks/use-toast.ts lines 37–53

type Action =
  | {
      type: ActionType["ADD_TOAST"]
      toast: ToasterToast
    }
  | {
      type: ActionType["UPDATE_TOAST"]
      toast: Partial<ToasterToast>
    }
  | {
      type: ActionType["DISMISS_TOAST"]
      toastId?: ToasterToast["id"]
    }
  | {
      type: ActionType["REMOVE_TOAST"]
      toastId?: ToasterToast["id"]
    }

Frequently Asked Questions

What is the Action type?
Action is a type/interface in the ui codebase, defined in deprecated/www/registry/default/hooks/use-toast.ts.
Where is Action defined?
Action is defined in deprecated/www/registry/default/hooks/use-toast.ts at line 37.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free