gajus / gajus/babel-plugin-react-css-modules

Typescript: styleName usage with @types/react@^17

Open
#292 4 comments 14 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2k
Forks
159
PR merge metrics
No merged PRs in 30d

Description

There's a problem with extending `Attributes` and `HTMLAttributes` interface with `styleName` with `@types/react@^17`. It simply has no effect:

```
Property 'styleName' does not exist on type 'DetailedHTMLProps, HTMLDivElement>'.

```

` "@types/react-css-modules": "^4.6.2",`

![image](https://user-images.githubusercontent.com/12760936/100109476-29f1f300-2e6c-11eb-8c60-0674ae34248f.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.