code-input
code-input copied to clipboard
Document use with TypeScript
The code-input.js+ESM documentation doesn't make it self-explanatory. I tried using vanilla TypeScript and it initially complained until both module and moduleResolution were set to nodeNext.
Not caused by code-input.js but potentially experienced when using it, yarnpkg with Plug'n'Play enabled does not create the node_modules/ directory that tsc requires.
https://github.com/WebCoder49/code-input-for-typescript is a slightly outdated but still usable example (without ESM).