Property 'prop' does not exist on type 'BaseRule'
Open
help wanted
typescript
- Dominant language
- JavaScript
- Stars
- 7.1k
- Forks
- 386
- PR merge metrics
- No merged PRs in 30d
Description
__Describe 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
Contributor guide
Assessment
This issue has not been assessed yet.