-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
Closed
Labels
Description
- The issue is present in the latest release.
- I have searched the issues of this repository and believe that this is not a duplicate.
Current Behavior 😯
According to the documentation, createStyles() should accept either a function or an object, but the TypeScript definition accept an object only.
Expected Behavior 🤔
The TypeScript definition of createStyles() should also accept a function.
Steps to Reproduce 🕹
CodeSandbox reproduction: https://codesandbox.io/s/sparkling-moon-yrppz?file=/src/index.ts
Context 🔦
Your Environment 🌎
| Tech | Version |
|---|---|
| Material-UI | v4.9.12 |
| React | N/A |
| Browser | N/A |
| TypeScript | v3.8.3 |
| etc. |