Want strong typing without a build process?
(Hint: you don’t need to use TypeScript.)
1. Use a modern editor like Helix Editor or VSCodium that supports the TypeScript Language Server (LSP).
2. Add this line to the top of your JavaScript file (without the backticks, if you see any):
```
// @ts-check
```
3. Go read up on JSDoc ;)
¹ https://helix-editor.com
² https://jsdoc.app/about-getting-started.html
@aral `// @ts-check` is really welcome and needed for files like eslint config or prettier config where you do not have other options like TS
So for example in #faker we use it like this https://github.com/faker-js/faker/blob/ede6ffac383a853c12b7a47cebbb031ba80627aa/.eslintrc.js#LL1C1-L1C1 together with https://github.com/Shinigami92/eslint-define-config
@Shini92 Nice. One very similar use case for me is database schemas for JavaScript Database (JSDB)¹, which is part of Kitten² :)
https://codeberg.org/domain/app/src/branch/main/app_modules/database/database.js
¹ https://codeberg.org/small-tech/jsdb
² https://codeberg.org/kitten/app