Skip to content

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