Jss: TypeScript declaration of classes should be class instead of interface

Created on 4 Jan 2019  路  2Comments  路  Source: cssinjs/jss

__Expected behavior:__
Inside index.d.ts the declaration of classes (e.g. Renderer, SheetsRegistry, etc.) should be declare class instead of interface.

__Describe the bug:__
When using jss in TypeScript, some types cannot be instantiated because they are declared as interface instead of class. Example:

'SheetsRegistry' only refers to a type, but is being used as a value here.

__Codesandbox link:__
https://codesandbox.io/s/m4p166n59y

__Versions (please complete the following information):__

  • jss: 10.0.0-alpha.7
bug moderate

All 2 comments

Thanks, will be fixed this evening.

@HenriBeck I had already prepared a PR, feel free to use it. Cheers!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kof picture kof  路  4Comments

kof picture kof  路  6Comments

Telokis picture Telokis  路  3Comments

antoinerousseau picture antoinerousseau  路  3Comments

HenriBeck picture HenriBeck  路  4Comments