Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TypeScript definitions #28

Open
wants to merge 2 commits into
base: v12
Choose a base branch
from
Open

Add TypeScript definitions #28

wants to merge 2 commits into from

Conversation

claabs
Copy link

@claabs claabs commented Jan 3, 2020

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
Copy link
Author

claabs commented Jan 3, 2020

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

@rimmartin
Copy link
Owner

Ah ok, when you are ready

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants