@@ -14,7 +14,7 @@ type NormalCssValues<K> = K extends keyof NormalCssProperties
1414 ? NormalCssProperties [ K ] | JssValue
1515 : JssValue
1616
17- export type JssStyle < Props = unknown , Theme = undefined > =
17+ export type JssStyle < Props = any , Theme = undefined > =
1818 | {
1919 [ K in keyof NormalCssProperties ] :
2020 | NormalCssValues < K >
@@ -210,8 +210,8 @@ export interface StyleSheet<RuleName extends string | number | symbol = string |
210210 * Add a rule to the current stylesheet.
211211 * Will insert a rule also after the stylesheet has been rendered first time.
212212 */
213- addRule ( style : JssStyle < any > , options ?: Partial < RuleOptions > ) : Rule
214- addRule ( name : RuleName , style : JssStyle < any > , options ?: Partial < RuleOptions > ) : Rule
213+ addRule ( style : JssStyle , options ?: Partial < RuleOptions > ) : Rule
214+ addRule ( name : RuleName , style : JssStyle , options ?: Partial < RuleOptions > ) : Rule
215215
216216 insertRule ( rule : Rule ) : void
217217 /**
@@ -262,12 +262,8 @@ export interface Jss {
262262 removeStyleSheet ( sheet : StyleSheet ) : this
263263 setup ( options ?: Partial < JssOptions > ) : this
264264 use ( ...plugins : Plugin [ ] ) : this
265- createRule ( style : JssStyle < any > , options ?: RuleFactoryOptions ) : Rule
266- createRule < Name extends string > (
267- name : Name ,
268- style : JssStyle < any > ,
269- options ?: RuleFactoryOptions
270- ) : Rule
265+ createRule ( style : JssStyle , options ?: RuleFactoryOptions ) : Rule
266+ createRule < Name extends string > ( name : Name , style : JssStyle , options ?: RuleFactoryOptions ) : Rule
271267}
272268
273269/**
0 commit comments