Home / Type/ InvokeResponseData Type — vite Architecture

InvokeResponseData Type — vite Architecture

Architecture documentation for the InvokeResponseData type/interface in invokeMethods.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  2fc97643_e8e5_1e4c_d3b6_86dbedccbf1a["InvokeResponseData"]
  e967e251_52a9_6dc8_9c8c_4a18ba126272["invokeMethods.ts"]
  2fc97643_e8e5_1e4c_d3b6_86dbedccbf1a -->|defined in| e967e251_52a9_6dc8_9c8c_4a18ba126272
  style 2fc97643_e8e5_1e4c_d3b6_86dbedccbf1a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/shared/invokeMethods.ts lines 68–77

export type InvokeResponseData<
  T extends keyof InvokeMethods = keyof InvokeMethods,
> = {
  name: T
  /** 'response' is for responses without an id */
  id: 'response' | `response:${string}`
  data:
    | { result: Awaited<ReturnType<InvokeMethods[T]>>; error?: undefined }
    | { result?: undefined; error: any }
}

Frequently Asked Questions

What is the InvokeResponseData type?
InvokeResponseData is a type/interface in the vite codebase, defined in packages/vite/src/shared/invokeMethods.ts.
Where is InvokeResponseData defined?
InvokeResponseData is defined in packages/vite/src/shared/invokeMethods.ts at line 68.

Analyze Your Own Codebase

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

Try Supermodel Free