Using Typescript Without Typescript | Dan Does Code #63
Replies: 6 comments 6 replies
-
According to the documentation, "the 'exclude' property defaults to excluding the node_modules, bower_components, jspm_packages and directories when not specified", so I think you can leave out, simplifying the jsconfig.json / tsconfig.json file a bit. |
Beta Was this translation helpful? Give feedback.
-
I kind prefer the TypeScript syntax to JsDoc as an "inline and in sync with the code form of documentation", but this is still a really interesting idea! It would be awesome if you provided a public project too so lazy people like me don't have to do all the setup just to try it out. 😅 |
Beta Was this translation helpful? Give feedback.
-
We adopted similar approach ~2 years ago at Zattoo. Covered whole codebase written in pure JavaScript with type safety based on JSDoc. Super happy about how it works. |
Beta Was this translation helpful? Give feedback.
-
It works in VSCode since it using TypeScript to analyse code underhood. This also mean you can just run TypeScript over your code and it gonna fail if types defined in JSDoc is wrong. So it can be used for static analysis in CLI or CI. |
Beta Was this translation helpful? Give feedback.
-
This is way better then Typescript. TypeScript should be it's own language and I don't intent on using it EVER. |
Beta Was this translation helpful? Give feedback.
-
Are you planning on doing the React version of this article? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Using Typescript Without Typescript
https://www.dandoescode.com/blog/using-typescript-without-typescript/
Beta Was this translation helpful? Give feedback.
All reactions