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

Convert project to typescript #1

Open
AllanWang opened this issue Jan 11, 2019 · 2 comments
Open

Convert project to typescript #1

AllanWang opened this issue Jan 11, 2019 · 2 comments
Assignees

Comments

@AllanWang
Copy link
Member

There will be a bunch of tricks to shorten the code, make it less error prone, and make it easier to navigate

https://hackernoon.com/writing-better-reduxs-code-with-typescript-b7a3c1209bca

@AllanWang AllanWang self-assigned this Jan 11, 2019
@AllanWang
Copy link
Member Author

AllanWang commented Jan 11, 2019

Open ended unions; type switching based on key

microsoft/TypeScript#26277

Actually works so long as you declare all possible types

https://www.patrickdunn.org/advanced-types-in-typescript/

@AllanWang
Copy link
Member Author

Mapped types, readonly, list comprehension like mutation

https://www.typescriptlang.org/docs/handbook/advanced-types.html

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

1 participant