basarat / basarat/typescript-book

style guide doesn't provide a reason for prefering interface for object typing

Open
#644 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
21.6k
Forks
2.6k
PR merge metrics
No merged PRs in 30d

Description

[style guide ](https://github.com/basarat/typescript-book/blob/master/docs/styleguide/styleguide.md) recommends using interface notation for objects, when it extends or implements but unlike all other recommendations doesn't provide reasoning. That is actually one I'd love to know 🙂.

Contributor guide

Open the contributing guide

Research direction

Open docs/styleguide/styleguide.md and locate the recommendation to use interface notation for object typing, especially the section covering extends or implements. Review the surrounding guidance and TypeScript documentation before adding a concise reason for the recommendation; the issue is done when that rationale appears alongside the existing advice.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.