cssinjs/jss

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

Open

#1.233 aberto em 20 de nov. de 2019

Ver no GitHub
 (5 comments) (0 reactions) (0 assignees)JavaScript (434 forks)batch import
help wantedtypescript

Métricas do repositório

Stars
 (7.000 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 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

Guia do colaborador