Resource. Also still use this as a experiment to learn how to use jsdoc as a way to utilize typescript support especially in vscode.

Some helpfull resources I used to figure out how things work is:

https://jswithtypes.com/ https://www.youtube.com/watch?v=oH_-6TyxVhI https://www.youtube.com/watch?v=XscWWPGNabU https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html#template https://www.youtube.com/watch?v=T64FIL1ii-0

https://dev.to/artxe2/how-to-set-up-jsdoc-for-npm-packages-1jm1

https://medium.com/@bdunn313/documenting-javascript-projects-f72429da2eea

https://medium.com/@metapgmr/hex-a-no-framework-approach-to-building-modern-web-apps-e43f74190b9c

The svelte source-code that now uses jsdoc in .js files instead of typescript. https://github.com/sveltejs/svelte/tree/main/packages/svelte/src/store

I do not fully understand how and why the still rely on .d.ts files though. Which i do not think will work in pure js projects. But I ight need to verify/research that. I have so far managed to not use d.ts files but intesad proper @typedefs instead.

https://jordanbrennan.hashnode.dev/a-guide-for-replacing-typescript