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/default export #2

Merged
merged 3 commits into from
Feb 16, 2020
Merged

Fix/default export #2

merged 3 commits into from
Feb 16, 2020

Conversation

joeyfigaro
Copy link
Contributor

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    Bug fix

  • What is the current behavior? (You can also link to an open issue here)
    default export for the library is broken and inferred return type is less than ideal

  • What is the new behavior (if this is a feature change)?
    humanid is now a named export, and type information for its return should read [string, string] to represent [GeneratedID, HashForID]

  • Other information:
    Fixed prettier config issue; for whatever reason, prettier was not using the config.

Swapped default export for humanid to named export and forced return types for a better ts
experience while using the library

BREAKING CHANGE: default export for library changed to named export
@joeyfigaro joeyfigaro merged commit f13c269 into master Feb 16, 2020
@joeyfigaro joeyfigaro deleted the fix/default-export branch February 16, 2020 18:44
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