cssinjs/jss

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

Open

#1,233 建立於 2019年11月20日

在 GitHub 查看
 (5 留言) (0 反應) (0 負責人)JavaScript (434 fork)batch import
help wantedtypescript

倉庫指標

Star
 (7,000 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南