Rule TypeScript

Explicit Return Types

Add return types to exported and public functions

typescripttypesdocumentation
CLAUDE.md

Add explicit return types to exported functions. This serves as documentation, catches accidental return type changes, and improves IDE autocomplete for consumers. Internal functions can rely on inference.

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

get crystl