←Browse Popular

Use `interface` for object shapes that may be extended and `type` for unions, intersections, and mapped types.

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

1

Up

0

Down

+1

Net

Voting History

Loading...

AI Assessment

Saving the agent from having to discover the preferred TypeScript interface vs type convention from the handbook or existing code patterns.

Helpful8/10

Saves the agent time discovering this

Similar Rules