Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace type aliases with interfaces in "Handbook -> More On Functions" #3266

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from

Conversation

sebastiancarlos
Copy link

This change aligns with the recommendation in "Handbook -> Everyday Types":

For the most part, you can choose based on personal preference, and TypeScript will tell you if it needs something to be the other kind of declaration. If you would like a heuristic, use interface until you need to use features from type.

Based on this guidance, all examples in the documentation should use interfaces where possible.

This is inline with the recommendation on "Handbook -> Everyday Types":

> For the most part, you can choose based on personal preference, and TypeScript will tell you if it needs something to be the other kind of declaration. If you would like a heuristic, use interface until you need to use features from type.

From which I take that all the examples in the documentation should be
interfaces when possible.
@sebastiancarlos
Copy link
Author

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant