Skip to content

Mention how to extend (most) any type #311

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

Open
estaub opened this issue Jul 29, 2017 · 1 comment
Open

Mention how to extend (most) any type #311

estaub opened this issue Jul 29, 2017 · 1 comment

Comments

@estaub
Copy link
Contributor

estaub commented Jul 29, 2017

I had an "aha moment" when I read microsoft/TypeScript#16985 (comment)

I think it would be great to explain somewhere that if you want to extend a literal interface, just give it a name. I don't see a good place for this tip; otherwise, I'd draft a PR.

@basarat
Copy link
Owner

basarat commented Jul 30, 2017

Mention how to extend (most) any type

It would go in tips but I need to understand a practical need for it. Can I have an example 🌹

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

No branches or pull requests

2 participants