2 ms·
Yeah, isn't TypeScript without enums and decorators already kind of "types as comments"?
by LudwigNagasena 5y ago
Yeah, isn't TypeScript without enums and decorators already kind of "types as comments"?
- city41 5y agoTypeScript does support JSDoc type annotations and will use them to validate types in a JS project. https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html https://www.typescriptlang.org/docs/handbook/jsdoc-supported...