Skip to content

Commit

Permalink
Change JssStyle Default Props Type to any
Browse files Browse the repository at this point in the history
  • Loading branch information
ITenthusiasm committed Mar 9, 2021
1 parent 90aed0b commit 44c1afd
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions packages/jss/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type NormalCssValues<K> = K extends keyof NormalCssProperties
? NormalCssProperties[K] | JssValue
: JssValue

export type JssStyle<Props = unknown, Theme = undefined> =
export type JssStyle<Props = any, Theme = undefined> =
| {
[K in keyof NormalCssProperties]:
| NormalCssValues<K>
Expand Down Expand Up @@ -210,8 +210,8 @@ export interface StyleSheet<RuleName extends string | number | symbol = string |
* Add a rule to the current stylesheet.
* Will insert a rule also after the stylesheet has been rendered first time.
*/
addRule(style: JssStyle<any>, options?: Partial<RuleOptions>): Rule
addRule(name: RuleName, style: JssStyle<any>, options?: Partial<RuleOptions>): Rule
addRule(style: JssStyle, options?: Partial<RuleOptions>): Rule
addRule(name: RuleName, style: JssStyle, options?: Partial<RuleOptions>): Rule

insertRule(rule: Rule): void
/**
Expand Down Expand Up @@ -262,12 +262,8 @@ export interface Jss {
removeStyleSheet(sheet: StyleSheet): this
setup(options?: Partial<JssOptions>): this
use(...plugins: Plugin[]): this
createRule(style: JssStyle<any>, options?: RuleFactoryOptions): Rule
createRule<Name extends string>(
name: Name,
style: JssStyle<any>,
options?: RuleFactoryOptions
): Rule
createRule(style: JssStyle, options?: RuleFactoryOptions): Rule
createRule<Name extends string>(name: Name, style: JssStyle, options?: RuleFactoryOptions): Rule
}

/**
Expand Down

0 comments on commit 44c1afd

Please sign in to comment.