saxon-node icon indicating copy to clipboard operation
saxon-node copied to clipboard

Add TypeScript definitions

Open claabs opened this issue 5 years ago • 2 comments

I had added types for my own project, and thought I should just spin up a PR so it wouldn't get lost.

The types are based mostly on the docs. Some functions were in the tests, but missing from the docs, so they were added as well. I didn't do too much digging through the C code, so there may be more exposed functions missing from the types. I can at least confirm that all the functions tested are typed.

I added docs to the types based on the docs site when they added value.

claabs avatar Jan 03 '20 14:01 claabs

There's some typos I've found, so not ready to merge yet.

claabs avatar Jan 03 '20 19:01 claabs

Ah ok, when you are ready

rimmartin avatar Jan 04 '20 01:01 rimmartin