From 17f54cfbe63009838c48fd2a12751302698ef200 Mon Sep 17 00:00:00 2001 From: Henri Date: Mon, 6 Jan 2020 11:30:53 +0100 Subject: [PATCH] Add type alias for WithStylesProps (#1254) * Add type alias for WithStylesProps * Add changelog entries --- changelog.md | 8 ++++++++ packages/react-jss/src/index.d.ts | 4 ++++ 2 files changed, 12 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 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