From 0776323d814e33a0aac3f44ff6da73ffa88fae7e Mon Sep 17 00:00:00 2001 From: Henri Beck Date: Mon, 6 Jan 2020 10:20:12 +0100 Subject: [PATCH 1/2] Add type alias for WithStylesProps --- packages/react-jss/src/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) 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 From 8458f12a47cf24908be9d5f0dff70a17b8265984 Mon Sep 17 00:00:00 2001 From: Henri Beck Date: Mon, 6 Jan 2020 10:29:47 +0100 Subject: [PATCH 2/2] Add changelog entries --- changelog.md | 8 ++++++++ 1 file changed, 8 insertions(+) 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