cssinjs/jss

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

Open

#1233 aperta il 20 nov 2019

Vedi su GitHub
 (5 commenti) (0 reazioni) (0 assegnatari)JavaScript (434 fork)batch import
help wantedtypescript

Metriche repository

Star
 (7000 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor