code-input icon indicating copy to clipboard operation
code-input copied to clipboard

Document use with TypeScript

Open WebCoder49 opened this issue 1 month ago • 0 comments

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).

WebCoder49 avatar Nov 15 '25 16:11 WebCoder49