Home / Type/ Update Type — vite Architecture

Update Type — vite Architecture

Architecture documentation for the Update type/interface in hmrPayload.d.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  0d9df5e9_8435_992b_0b67_f77931f03c72["Update"]
  811fbe9d_f62d_f86c_1173_6621e1b17f05["hmrPayload.d.ts"]
  0d9df5e9_8435_992b_0b67_f77931f03c72 -->|defined in| 811fbe9d_f62d_f86c_1173_6621e1b17f05
  style 0d9df5e9_8435_992b_0b67_f77931f03c72 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/types/hmrPayload.d.ts lines 25–44

export interface Update {
  type: 'js-update' | 'css-update'
  /**
   * URL of HMR patch chunk
   *
   * This only exists when full-bundle mode is enabled.
   */
  url?: string
  path: string
  acceptedPath: string
  timestamp: number
  /** @internal */
  explicitImportRequired?: boolean
  /** @internal */
  isWithinCircularImport?: boolean
  /** @internal */
  firstInvalidatedBy?: string
  /** @internal */
  invalidates?: string[]
}

Frequently Asked Questions

What is the Update type?
Update is a type/interface in the vite codebase, defined in packages/vite/types/hmrPayload.d.ts.
Where is Update defined?
Update is defined in packages/vite/types/hmrPayload.d.ts at line 25.

Analyze Your Own Codebase

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

Try Supermodel Free