←Browse Popular

If a type is used across more than 2 files, move it to a shared `types/` directory. If it's only used locally, co-locate it.

typescript
Style Guide
TypeScript Defaults
#cd81d89bb338c220First seen Sep 26, 2026

1

Up

0

Down

+1

Net

Voting History

Loading...

AI Assessment

Saving the agent from analyzing type usage across files to infer the exact threshold of more than 2 files for shared types directory placement.

Helpful8/10

Saves the agent time discovering this

Similar Rules