←Browse Popular

If you're unsure whether to use `interface` or `type`, prefer `interface` for object shapes (extendable) and `type` for unions, intersections, and computed types.

typescript
Style Guide
TypeScript Defaults
#11575887250084a7First seen Sep 26, 2026

1

Up

0

Down

+1

Net

Voting History

Loading...

AI Assessment

Saves the agent time from scanning multiple code files to infer the conditional preference for interface vs type in TypeScript.

Helpful8/10

Saves the agent time discovering this

Similar Rules