Property 'prop' does not exist on type 'BaseRule'
See original GitHub issueDescribe the bug:
Code like this:
styleSheet.getRule('ruleName').prop('propName', propValue)
used to work perfectly fine with jss 9.x, but with v10.0.0 it fails with the following typescript error during build:
Property ‘prop’ does not exist on type ‘Rule’. Property ‘prop’ does not exist on type ‘BaseRule’.
Expected behavior:
No typescript compile error
Versions:
- jss: 10.0.0
- typescript: 3.6.4
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Property 'props' does not exist on type '{}' (trying to get access ...
I'm doing custom Tabs component and ran into some problems. When I try to get access to the 'props' of children I get...
Read more >Changelog and Migration Guide - Detekt
ArrayPrimitive rule is more precise but requires type resolution now. The deprecated customReports property of the Gradle plugin got removed. Deprecated ...
Read more >Logarithmic Properties - Andrews University
To calculate logs to other bases, the change of base rule below (#4) should be used. It is only multiplication by a constant...
Read more >Logarithm change of base rule intro (article) - Khan Academy
This is very useful for finding logarithms in the calculator! ... When using this property, you can choose to change the logarithm to...
Read more >Revisiting Occurrence Typing - Archive ouverte HAL
The latter property is challenging because, as explained just above, our type assumptions are not only about variables but also about expressions.
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
@tcoughlin3 totally send a PR, if you want to sync about how you could help on other issues, feel free to either just search for them or ping me in dm on gitter to find issues for you to work on
@kof It seems like we just need to add a
prop
attribute to the Rule type definition somewhere around here: https://github.com/cssinjs/jss/blob/3c335148f5ba3dbe9d6fb017356f64a8fe6a3776/packages/jss/src/index.d.ts#L105-L116I’m looking to help with some open source issues. I’m happy to create a PR for this.