Type props/data
See original GitHub issueIs your feature request related to a problem? Please describe.
I can’t manage to find any way to type the props/data parameter which is currently unknown :
Describe the solution you’d like
It would be nice to provide a type generic parameter on createUseStyle to type data: unknown
(in fact I can see in the code that it is left as a TODO)
Are you willing to implement it?
Yes, I’ll try to implement it !
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Mounting Options | Vue Test Utils
Set the component instance's $attrs object. # propsData. type: Object. Set the component instance's props when the component is mounted. Example:.
Read more >Setting props with propsData - Vue Testing Handbook
propsData can be used with both mount and shallowMount . It is often used to test components that receive props from their parent...
Read more >How to Use Props in Vue.js - freeCodeCamp
To specify the type of prop you want to use in Vue, you will use an object ... If the type of the...
Read more >Props - Vue Explanation
propsData is initialized as an object. Not only is it defined as a local variable, but also is deinfed on the vm.$options ....
Read more >Vue propsData not updating dynamically - Stack Overflow
I pass the parent's data(the type attribute) as props both to the dynamically and statically created instances. When you insert a new button,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I also think that it should be a generic, but I also haven’t tried to add one there to see if there are problems, so I encourage you to start a PR!
Released in v10.6.0