Skip to content

Commit 44c1afd

Browse files
committed
Change JssStyle Default Props Type to any
1 parent 90aed0b commit 44c1afd

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

packages/jss/src/index.d.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)