Extreme explorations of TypeScript's type system
learningtypescript.com
Extreme explorations of TypeScript's type system
1–10 of 64 posts
Re: Extreme explorations of TypeScript's type system
#2Re: Extreme explorations of TypeScript's type system
#3I've seen many projects where the typing is done so well that it can infer and include all the data I've fed into the TS-defined functions / classes, which is great for IDE autocompletion.
Re: Extreme explorations of TypeScript's type system
#4This is a great list. I feel I'm only scratching the surface when it comes to Typescript, and it would be awesome to have a place where we can see advanced examples of Typescript usage like this. I've seen many projects where the typing is done so well that it can infer and include all the data I've fed into the TS-defined functions / classes, which is great for IDE autocompletion.
Re: Extreme explorations of TypeScript's type system
#5TypeScript's type annotations are really a DSL embedded into JavaScript. And they can, and, depending on the problem at hand, should be treated as such.
Re: Extreme explorations of TypeScript's type system
#6To try and limit one's use of operations on types, as suggested in the article, is not really great advice in my opinion. Sure, you would not want to actually implement and use a VM in types, but distilling rules about a program into types and then deriving the actual interfaces and signatures from those rules with operations on types? That's quite powerful. TypeScript's type annotations are really a DSL embedded int…
Re: Extreme explorations of TypeScript's type system
#7This is a great list. I feel I'm only scratching the surface when it comes to Typescript, and it would be awesome to have a place where we can see advanced examples of Typescript usage like this. I've seen many projects where the typing is done so well that it can infer and include all the data I've fed into the TS-defined functions / classes, which is great for IDE autocompletion.
What are some of the projects have done typing that well?
(I'm a bit sleepy, so this is the main one I can think of at the moment that I really enjoy using.)
Re: Extreme explorations of TypeScript's type system
#8This is a great list. I feel I'm only scratching the surface when it comes to Typescript, and it would be awesome to have a place where we can see advanced examples of Typescript usage like this. I've seen many projects where the typing is done so well that it can infer and include all the data I've fed into the TS-defined functions / classes, which is great for IDE autocompletion.
What are some of the projects have done typing that well?
Re: Extreme explorations of TypeScript's type system
#9I also wonder if you could compile TypeScript to TypeScript types? After all, you want your type manipulation code to be typesafe.