-
-
Notifications
You must be signed in to change notification settings - Fork 27
feat: add createMapper
convenience utility
#264
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
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/danielroe/nuxt-typed-vuex/2pbMXckQsBB4CYnDJX6imWLExqi4 |
Codecov Report
@@ Coverage Diff @@
## main #264 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 9 10 +1
Lines 99 117 +18
Branches 20 28 +8
=========================================
+ Hits 99 117 +18
Continue to review full report at Codecov.
|
Freaking insane ! Thanks ❤️ |
Great feature, but can this be extend to allow us to rename the props names? Like vuex does with mapGetters, etc ? |
Go for it - raise an issue with an example of what you mean 😊 |
This looks very cool, but I don't understand where to import |
I think it seems to be: https://unpkg.com/browse/[email protected]/dist/index.d.ts. Are you on v0.3.0+? |
My bad, I was using an older version, thank you! I also want to second MateiNenciu's feature request, but I'll follow your suggestion to open a new issue for it. |
resolves #260
🔥 Notable changes
This PR adds a convenience helper function to allow you to easily map the accessor state/methods into your component.