type-inference

Installation
SKILL.md

Purpose

Use this skill when working with Biome's type inference system and module graph. Covers type references, resolution phases, and the architecture designed for IDE performance.

Prerequisites

  1. Read crates/biome_js_type_info/CONTRIBUTING.md for architecture details
  2. Understand Biome's focus on IDE support and instant updates
  3. Familiarity with TypeScript type system concepts

Key Concepts

Module Graph Constraint

Critical rule: No module may copy or clone data from another module, not even behind Arc.

Why: Any module can be updated at any time (IDE file changes). Copying data would create stale references that are hard to invalidate.

Solution: Use TypeReference instead of direct type references.

Related skills

More from biomejs/biome

Installs
67
Repository
biomejs/biome
GitHub Stars
24.6K
First Seen
Feb 18, 2026