3 ms·
From the article: > Writing an application with typescript and infrastructure code in typescript means if you want to upgrade your version of typescript you ne
by arinlen 4y ago
From the article:
> Writing an application with typescript and infrastructure code in typescript means if you want to upgrade your version of typescript you need to upgrade both at the same time.
No, it really doesn't. I've been writing all my CDK projects in TypeScript for years and in the process I had to upgrade CDK multiple times,and not once did I had to upgrade TypeScript. Ever.
Also, CDK supports half a dozen languages, including JavaScript. Why did the author singles out one of the six as if it was such a critical step?
The article is a terribly uninformed and disingenuous read. I completely wasted a click on it.
- moltar 4y agoExactly! And the reason for that is because it uses JSII to convert TypeScript to other languages. And JSII doesn’t understand any complex types. So CDK authors are forced to use very basic primitives. Which doesn’t take away anything from its quality in the end. CDK project uses types that were probably supported in TypeScript v1.0.