Álvaro José Agámez Licha
Senior Software Developer
Deno: "Complicated and slow build process on each build of the Deno internal runtime code."
Svelte: "As a Svelte compiler developer, debugging without a build step greatly simplifies compiler development."
With JSDoc, you can enjoy the same benefits as TypeScript, while removing most of the TypeScript drawbacks.
// tsconfig.json
{
"compilerOptions": {
"allowJs": true,
"checkJs": true
}
}
// VS Code Config
"javascript.validate.enable": true
There are 2 official sources to learn JSDoc syntax:
To validate our JSDoc types we use the TypeScript compiler in the same way we do for TypeScript.
// package.json
"scripts": {
"build:types": "tsc -p tsconfig.build.types.json",
"check:types": "tsc"
}
JSDoc provides a viable alternative to TypeScript, allowing for type safety without sacrificing JavaScript's flexibility.