Home / Type/ LoaderEvents Type — astro Architecture

LoaderEvents Type — astro Architecture

Architecture documentation for the LoaderEvents type/interface in runner.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  e9a2c731_57aa_b33d_bb8a_a29d42e60485["LoaderEvents"]
  58abb67e_f385_ecd0_f6d1_c515d265bf85["runner.ts"]
  e9a2c731_57aa_b33d_bb8a_a29d42e60485 -->|defined in| 58abb67e_f385_ecd0_f6d1_c515d265bf85
  style e9a2c731_57aa_b33d_bb8a_a29d42e60485 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/module-loader/runner.ts lines 9–20

export type LoaderEvents = {
	'file-add': (msg: [path: string, stats?: fs.Stats | undefined]) => void;
	'file-change': (msg: [path: string, stats?: fs.Stats | undefined]) => void;
	'file-unlink': (msg: [path: string, stats?: fs.Stats | undefined]) => void;
	'hmr-error': (msg: {
		type: 'error';
		err: {
			message: string;
			stack: string;
		};
	}) => void;
};

Frequently Asked Questions

What is the LoaderEvents type?
LoaderEvents is a type/interface in the astro codebase, defined in packages/astro/src/core/module-loader/runner.ts.
Where is LoaderEvents defined?
LoaderEvents is defined in packages/astro/src/core/module-loader/runner.ts at line 9.

Analyze Your Own Codebase

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

Try Supermodel Free