niieani / typescript-vs-flowtype

Differences between Flowtype and TypeScript -- syntax and usability
MIT License
1.73k stars 78 forks source link

Include conditional typing and mapped types to Typescript #27

Closed michaeljota closed 6 years ago

michaeljota commented 6 years ago

Although there has been several new features added to Typescript, I think most of them just updates Typescript itself, but this two is something the developer can use to improve the typing experience.

michaeljota commented 6 years ago

@styfle Thanks for the review. I update the PR with one more feature, a Diff example implementation.

michaeljota commented 6 years ago

I all the typos and remove the mixed type misinformation. I still think that mixed is not the same as {}, but so far, it does the job.

Thank you for the review. I still haven't change the Partial user. Let me know if you want me to change was it were before, or maybe write both examples with the same meaning, a shape that defines a user with some properties that are optional, and that allows to add additional properties.

niieani commented 6 years ago

Thanks.