4 ms·
I'm actually using JSTypes in app, I don't mind it. I choose to use it because I didn't want to deal with a build step for a smaller project. The project has g
by akst 10mo ago
I'm actually using JSTypes in app, I don't mind it.
I choose to use it because I didn't want to deal with a build step for a smaller project. The project has grown and I am looking at adding a build step for bundling but still not too worried about using JSDoc over TS.
This might be my config, but one thing that does annoy me is whenever I define a lambda, I need to add an doc type. I guess if that's disincentivising me from writing lambdas maybe I should just add a TS compile step lol.
----------------------
Here's an example
- I got some config typed with this function https://github.com/AKST/analysis-notebook/blob/c9fea8b465317f41da2a10d7c1d493c811803e32/lib/app/sec-unsw/sec-2102/sec-05-3/util.js#L11-L14 https://github.com/AKST/analysis-notebook/blob/c9fea8b465317...
- Here's the type https://github.com/AKST/analysis-notebook/blob/c9fea8b465317f41da2a10d7c1d493c811803e32/lib/app/sec-unsw/sec-2102/sec-05-3/type.ts#L18-L36 https://github.com/AKST/analysis-notebook/blob/c9fea8b465317...
- And here's something to generate a more complicated type for defining config knobs https://github.com/AKST/analysis-notebook/blob/c9fea8b465317f41da2a10d7c1d493c811803e32/lib/base/runtime/config/type.ts#L52-L60 https://github.com/AKST/analysis-notebook/blob/c9fea8b465317...
- g947o 10mo agoThese days you can run TypeScript files as-is (type stripping) for testing in many runtimes, and for bundling, most bundlers support using a ts file as the entry point directly.
- akst 10mo agoyep! However this is a website I made for hosting my own notes in the browser browser (sorry for the load times, no bundler so each file is a seperate request) https://akst.io/vis/20250601-complex-geo/?app=unsw.2102.01-1 https://akst.io/vis/20250601-complex-geo/?app=unsw.2102.01-1 That said, when I write tests, I write them in Typescript for that reason.