Rule TypeScript

Infer Internal Types

Let TypeScript infer types for local variables and private code

typescriptinferencereadability
CLAUDE.md

Let TypeScript infer types for local variables and private functions. Explicit types on const x: string = 'hello' add noise without value. Add types only where inference fails or at module boundaries.

Copy this block into your CLAUDE.md or agent config file to enforce it in your workflow.

get crystl