News for hackers. Stuff that matters.
Re:A 'CSS reset' for TypeScript, improving types for common ... by kristiandupont on Friday March 03, 2023 @10:09AM (#35010563)
I'm working on a JS project for a client. I can't modify the deployment procedure so I can't add a build step and ts-node is no help because it's frontend.

JSDoc comments can be checked with TSC and I get squiggly lines in VSCode. It's a major step in the right direction. Obviously tests work the same they always did, there is no runtime type checking just as there isn't in TS.

Re:A 'CSS reset' for TypeScript, improving types for common ... by schwartzworld on Friday March 03, 2023 @10:39AM (#35010991)
You could build it before you check the code in.
Re:A 'CSS reset' for TypeScript, improving types for common ... by kristiandupont on Friday March 03, 2023 @11:34AM (#35011750)
I guess, but that seems at least as tedious as maintaining JSDoc comments to me.