cssinjs / cssinjs/jss

Property 'prop' does not exist on type 'BaseRule'

Open
#1,233 5 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.