cssinjs/jss

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

オープン

#1,233 opened on 2019/11/20

 (5 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (434 件のフォーク)batch import
help wantedtypescript

Repository metrics

Stars
 (7,000 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド