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 definition file. #35

Closed

Conversation

ducksoupdev
Copy link

I am using your module in a typescript project and added the definition for the API. If anyone is writing typescript for node then this is a helpful addition.

@jprichardson
Copy link
Owner

Why change the entire API and break the standard Node.js convention of having the callback as the last parameter?

@ducksoupdev
Copy link
Author

I did it that way because in Typescript, optional parameters cannot follow required ones. However, there is another way so I'll close the PR and send again after refactoring.

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.

None yet

2 participants