-
-
Notifications
You must be signed in to change notification settings - Fork 400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
createUseStyles typescript declaration missing #1132
Comments
Looks like this is already accomplished in @HenriBeck 's Just needs to be PR'd and merged? |
I started already with the typings. I will finish them today |
I want to do some more testing tomorrow, and then we will release a new version. |
Sorry, had a few busy weeks with work and university. Finally got to check the typing and they look good. I also started on adding proper type completion for the style object, but it's not correctly inferred at the moment. |
@HenriBeck |
Having the same issue, just wondering why the issue has been closed. |
Any update on this? |
@stewartduffy I know this is now closed but I am having a similar issue: #1344 React, using Material-UI via @material-ui/core/styles I'm getting all kinds of type errors when trying to define styles. |
Steps to reproduce:
npx create-react-app use-styles-ts
cd use-styles-ts
yarn add react-jss@next typescript
yarn add -D @types/react
App.js -> App.tsx
and implement a simple usage ofcreateUseStyles
hookyarn start
Expected behavior:
Describe the bug:
createUseStyles
is missing fromreact-jss/src/index.d.ts
createUseStyles
to this file silences the errorVersions:
The text was updated successfully, but these errors were encountered: