diff --git a/changelog.md b/changelog.md index a39f0279b..30e8454a0 100755 --- a/changelog.md +++ b/changelog.md @@ -4,6 +4,14 @@ Since you are interested in what happens next, in case, you work for a for-profi --- +### Bug fixes + +- [react-jss] Add type alias for `WithStyles` ([1254](https://github.com/cssinjs/jss/pull/1254)) + +### Improvements + +- [css-jss] Add TypeScript type definitions ([1247](https://github.com/cssinjs/jss/pull/1247)) + ## 10.0.3 (2020-1-1) ### Improvements diff --git a/packages/react-jss/src/index.d.ts b/packages/react-jss/src/index.d.ts index 35bf1a88c..5a55c3110 100644 --- a/packages/react-jss/src/index.d.ts +++ b/packages/react-jss/src/index.d.ts @@ -40,6 +40,10 @@ declare const JssContext: Context<{ interface WithStylesProps Styles)> { classes: Classes Styles) ? keyof ReturnType : keyof S> } +/** + * @deprecated Please use `WithStylesProps` instead + */ +type WithStyles Styles)> = WithStylesProps interface WithStylesOptions extends StyleSheetFactoryOptions { index?: number