Home / Type/ CustomEventMap Type — vite Architecture

CustomEventMap Type — vite Architecture

Architecture documentation for the CustomEventMap type/interface in customEvent.d.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  835094a6_95d8_ecbb_6d4a_535ac685bed2["CustomEventMap"]
  fa49128f_1b2e_bfe5_e09a_a0308064143b["customEvent.d.ts"]
  835094a6_95d8_ecbb_6d4a_535ac685bed2 -->|defined in| fa49128f_1b2e_bfe5_e09a_a0308064143b
  style 835094a6_95d8_ecbb_6d4a_535ac685bed2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/types/customEvent.d.ts lines 8–24

export interface CustomEventMap {
  // client events
  'vite:beforeUpdate': UpdatePayload
  'vite:afterUpdate': UpdatePayload
  'vite:beforePrune': PrunePayload
  'vite:beforeFullReload': FullReloadPayload
  'vite:error': ErrorPayload
  'vite:invalidate': InvalidatePayload
  'vite:ws:connect': WebSocketConnectionPayload
  'vite:ws:disconnect': WebSocketConnectionPayload
  /** @internal */
  'vite:module-loaded': { modules: string[] }

  // server events
  'vite:client:connect': undefined
  'vite:client:disconnect': undefined
}

Frequently Asked Questions

What is the CustomEventMap type?
CustomEventMap is a type/interface in the vite codebase, defined in packages/vite/types/customEvent.d.ts.
Where is CustomEventMap defined?
CustomEventMap is defined in packages/vite/types/customEvent.d.ts at line 8.

Analyze Your Own Codebase

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

Try Supermodel Free