You can write TS that way. Most people who write a lot of typescript don't though. Instead of describing JavaScript's inherent limitlessness, you can deliberately reduce the size of the infinity within any given context.
Your app just knows what values it's going to get out of a function. Your IDE happily suggests the exact right set of property names to make a function work right.
You're not really working alone because you're going to be integrating with external libraries and APIs. Many of them include typescript support because it takes the guesswork out of working with them.
I don't have any problems getting functions to work or reading the docs to use APIs, so typescript isn't solving anything for me there.
I wouldn't mind using a very minimal amount of typescript, basically JS with proper Enums, typed function parameters, and return types, but there seems to be a ton of hurdles to jump just to get started with it.
If I was working for a company, I'd be happy to spend 6 months of their time learning how to use it properly, but I don't think I can justify it for myself right now, I don't have the time to be fighting with a code editor for weeks/months.
Comments
You can write TS that way. Most people who write a lot of typescript don't though. Instead of describing JavaScript's inherent limitlessness, you can deliberately reduce the size of the infinity within any given context.
Your app just knows what values it's going to get out of a function. Your IDE happily suggests the exact right set of property names to make a function work right.
You're not really working alone because you're going to be integrating with external libraries and APIs. Many of them include typescript support because it takes the guesswork out of working with them.
I don't have any problems getting functions to work or reading the docs to use APIs, so typescript isn't solving anything for me there.
I wouldn't mind using a very minimal amount of typescript, basically JS with proper Enums, typed function parameters, and return types, but there seems to be a ton of hurdles to jump just to get started with it.
If I was working for a company, I'd be happy to spend 6 months of their time learning how to use it properly, but I don't think I can justify it for myself right now, I don't have the time to be fighting with a code editor for weeks/months.