Skip to content

Wrong typings for makeStyles #13718

@bartekczyz

Description

@bartekczyz
  • This is not a v0.x issue.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

It should compile without errors

Current Behavior

I'm getting Type error: Expected 1 arguments, but got 2. TS2554 when using makeStyles with 2nd argument

Tech Version
@material-ui/core v3.6.0
@material-ui/styles v3.0.0-alpha.1
React v.16.7.0-alpha.2
TypeScript v3.1.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: stylesSpecific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5.type: bugIt doesn't behave as expected.typescript

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions