5 ms·
that is to say, the types are not part of the syntax in any way?
by valyagolev 5y ago
that is to say, the types are not part of the syntax in any way?
- somebee 5y agoYou can typeset variables, parameters etc (ie. see the code in https://dev.to/somebee/global-type-augmentations-with-automagic-intellisense-4aka https://dev.to/somebee/global-type-augmentations-with-automa...). But declaring standalone types is still done in `.d.ts` files. Imho, the type inference in ts/js is getting so good that I very rarely need to declare any explicit types in my own projects.