Skip to content

chore: Fix function types. #16

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

Merged
merged 5 commits into from
Oct 21, 2020
Merged

Conversation

thorwebdev
Copy link
Contributor

r? @kiwicopple

What kind of change does this PR introduce?

  • Fix function return types.
  • Add types for onAuthStateChange callback function

@@ -13,8 +13,11 @@ const DEFAULT_OPTIONS = {
}
export default class GoTrueClient {
api: GoTrueApi
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kiwicopple are these all meant to be public? E.g. should I use currentUser instead of the user method?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I had that there because of the original supabase client.

I think it might be better to make currentUser private, then make calls to user() yeah? It future-proofs the library in case we need to add enrichments or handle regression later on

@thorwebdev thorwebdev changed the title [WIP] chore: Fix function types. chore: Fix function types. Oct 21, 2020
@thorwebdev thorwebdev requested a review from kiwicopple October 21, 2020 12:42
@kiwicopple kiwicopple merged commit ab8e213 into master Oct 21, 2020
@github-actions
Copy link
Contributor

🎉 This PR is included in version 1.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@thorwebdev thorwebdev deleted the thor/type-callback-function branch October 26, 2020 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants