Home / File/ hot.d.ts — vite Source File

hot.d.ts — vite Source File

Architecture documentation for hot.d.ts, a typescript file in the vite codebase. 1 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  603c1c6f_56bf_9c15_d44d_54c7564c037f["hot.d.ts"]
  0d1e0cd6_0150_a04c_ad57_1e2165a3161d["./customEvent.js"]
  603c1c6f_56bf_9c15_d44d_54c7564c037f --> 0d1e0cd6_0150_a04c_ad57_1e2165a3161d
  style 603c1c6f_56bf_9c15_d44d_54c7564c037f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import type { CustomEventName, InferCustomEventPayload } from './customEvent.js'

export type ModuleNamespace = Record<string, any> & {
  [Symbol.toStringTag]: 'Module'
}

export interface ViteHotContext {
  readonly data: any

  accept(): void
  accept(cb: (mod: ModuleNamespace | undefined) => void): void
  accept(dep: string, cb: (mod: ModuleNamespace | undefined) => void): void
  accept(
    deps: readonly string[],
    cb: (mods: Array<ModuleNamespace | undefined>) => void,
  ): void

  acceptExports(
    exportNames: string | readonly string[],
    cb?: (mod: ModuleNamespace | undefined) => void,
  ): void

  dispose(cb: (data: any) => void): void
  prune(cb: (data: any) => void): void
  invalidate(message?: string): void

  on<T extends CustomEventName>(
    event: T,
    cb: (payload: InferCustomEventPayload<T>) => void,
  ): void
  off<T extends CustomEventName>(
    event: T,
    cb: (payload: InferCustomEventPayload<T>) => void,
  ): void
  send<T extends CustomEventName>(
    event: T,
    data?: InferCustomEventPayload<T>,
  ): void
}

Domain

Dependencies

  • ./customEvent.js

Frequently Asked Questions

What does hot.d.ts do?
hot.d.ts is a source file in the vite codebase, written in typescript. It belongs to the HMRClient domain.
What does hot.d.ts depend on?
hot.d.ts imports 1 module(s): ./customEvent.js.
Where is hot.d.ts in the architecture?
hot.d.ts is located at packages/vite/types/hot.d.ts (domain: HMRClient, directory: packages/vite/types).

Analyze Your Own Codebase

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

Try Supermodel Free