Skip to content

Commit 17f54cf

Browse files
author
Henri
authored
Add type alias for WithStylesProps (#1254)
* Add type alias for WithStylesProps * Add changelog entries
1 parent 3056302 commit 17f54cf

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

changelog.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ Since you are interested in what happens next, in case, you work for a for-profi
44

55
---
66

7+
### Bug fixes
8+
9+
- [react-jss] Add type alias for `WithStyles` ([1254](https://github.com/cssinjs/jss/pull/1254))
10+
11+
### Improvements
12+
13+
- [css-jss] Add TypeScript type definitions ([1247](https://github.com/cssinjs/jss/pull/1247))
14+
715
## 10.0.3 (2020-1-1)
816

917
### Improvements

packages/react-jss/src/index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ declare const JssContext: Context<{
4040
interface WithStylesProps<S extends Styles | ((theme: unknown) => Styles)> {
4141
classes: Classes<S extends ((theme: unknown) => Styles) ? keyof ReturnType<S> : keyof S>
4242
}
43+
/**
44+
* @deprecated Please use `WithStylesProps` instead
45+
*/
46+
type WithStyles<S extends Styles | ((theme: unknown) => Styles)> = WithStylesProps<S>
4347

4448
interface WithStylesOptions extends StyleSheetFactoryOptions {
4549
index?: number

0 commit comments

Comments
 (0)