cssinjs/jss

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

Open

#1 233 ouverte le 20 nov. 2019

Voir sur GitHub
 (5 commentaires) (0 réactions) (0 assignés)JavaScript (434 forks)batch import
help wantedtypescript

Métriques du dépôt

Stars
 (7 000 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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

Guide contributeur