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

Improve typings and fix snackbar close callback #23

Merged
merged 4 commits into from
Jul 4, 2024

Conversation

ramseyfeng
Copy link

fix: adding types/node for the package.json to fix the npm install
fix: inform the TypeScript compiler about the existence of the global
fix: fix types of the level & fix onCloseSnackbar callback of SnackBar component

Copy link
Owner

@ThomasLeconte ThomasLeconte left a comment

Choose a reason for hiding this comment

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

Hi, thanks for PR, and sorry for late !
Nice work, I let you add Level type on index.d.ts for CreateNotifyOptions !
I don't really understand why you added onCloseSnackbar prop to Snackbar.vue, because when snackbar closes, the Promise is closed too, so you can do whatever you want in .then() of it ?

@ramseyfeng
Copy link
Author

@ThomasLeconte Hi Thomas, you are right! I have reverted the callback, it should not be necessary.
BTW, I also revert the change for location, it seems I cannot fix it well, and vuetify seems not export the type of Anchor.

@ThomasLeconte ThomasLeconte merged commit 4a587fe into ThomasLeconte:master Jul 4, 2024
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.

2 participants