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

Fix: make all options optional in typings #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stretchkennedy
Copy link

This PR fixes the typescript typings to reflect what the constructor actually takes. Looking at the constructor, all the options are optional, and you can omit options entirely if you're happy with the defaults. There's even a test for this.

This was a bit of a pain point for me, because at the moment maxLoadFactor is required, and you have to go digging through c++ documentation to work out that the default is 1.0 for an unordered map.

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.

1 participant