Skip to content
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

fix typescript definition for class | className #3711

Merged

Conversation

PodaruDragos
Copy link
Contributor

@PodaruDragos PodaruDragos commented Sep 5, 2022

When using typescript's exactOptionalPropertyTypes and accessing css-modules with a index definition the class and or className must be typed to string | undefined to appease the compiler.

this fix just modifies those properties to also include undefined, which won't break anything.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 99.527% when pulling d607d05 on PodaruDragos:FIX/ts-typyes-for-classes into 803dbb5 on preactjs:master.

@JoviDeCroock JoviDeCroock merged commit a5258a9 into preactjs:master Sep 7, 2022
JoviDeCroock added a commit that referenced this pull request Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants