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

Include typescript exports #234

Closed
wants to merge 4 commits into from

Conversation

felipeleusin
Copy link

Description

This PR includes the exports of the typescript typings from the index.d.ts file. With this you can access all the typings directly from the package.

For example:

import createAuth0Client, { Auth0ClientOptions } from "@auth0/auth0-spa-js";

One downside is that you need to access the exported types directly inside the project but this is something I consider a acceptable and provides more clarity as to where the types are coming from.

I also renamed getIdTokenClaimsOptions to GetIdTokenClaimsOptions but kept an export with the old name for compatibility sake so this doesn't need to qualify as breaking change.

References

Issues: #63, #39

@felipeleusin felipeleusin requested a review from a team October 7, 2019 10:33
@felipeleusin felipeleusin changed the title feat: include typescript exports Include typescript exports Oct 7, 2019
@luisrudge
Copy link
Contributor

@felipeleusin thanks for the PR 🎉 can you please check why integration tests are failing? I assume it's related to how the imports work?

@joshcanhelp joshcanhelp requested review from luisrudge and removed request for a team October 10, 2019 15:18
@joshcanhelp
Copy link
Contributor

@felipeleusin - Are you able to take a look at the failing tests here? Thank you in advance 🙇

@joshcanhelp joshcanhelp added CH: Added PR is adding feature or functionality review:medium labels Oct 25, 2019
@felipeleusin
Copy link
Author

Hi sorry, still couldn't but I will be able to take a look at this next week

@felipeleusin
Copy link
Author

Hi, just wanted to say that I'm switching jobs and won't be working with this library anymore so if anyone feels like picking this up, feel free

@stevehobbsdev stevehobbsdev requested review from a team and removed request for a team December 17, 2019 10:34
@stevehobbsdev
Copy link
Contributor

Closing this in favour of #310

@felipeleusin
Copy link
Author

Thanks for picking this up. Sorry I couldn't finish the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CH: Added PR is adding feature or functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants