cssinjs/jss

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

开放

#1,233 创建于 2019年11月20日

 (5 条评论) (0 个反应) (0 位负责人)JavaScript (434 个派生)batch import
help wantedtypescript

仓库指标

星标
 (7,000 个星标)
PR 合并指标
 (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

贡献者指南