kripken / xml.js

Port of libxml to JavaScript using Emscripten
Other
174 stars 67 forks source link

TypeScript definitions #36

Open Zamiell opened 1 year ago

Zamiell commented 1 year ago

Hello, and thanks for the library.

Can you please add TypeScript definitions so that TypeScript users can consume it?

sterpe commented 1 year ago

No, but I will accept a PR.

Zamiell commented 1 year ago

For any other TypeScript users reading this, I recommend using: https://github.com/aautio/validate-with-xmllint

xgqfrms commented 9 months ago

For any other TypeScript users reading this, I recommend using: https://github.com/aautio/validate-with-xmllint

This solution only works in Node.js, not support in browsers.

Because it uses the child_process API in the code.

https://github.com/aautio/validate-with-xmllint/issues/23#issuecomment-1727477352

refs

https://stackoverflow.com/questions/77105411/defining-typescript-types-for-commonjs-module