Created
January 4, 2022 12:32
-
-
Save ViliamKopecky/2d21119d80013c0322e04b9f4a8fad72 to your computer and use it in GitHub Desktop.
React extend declaration of CSSProperties with custom properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare module 'react' { | |
interface CSSProperties { | |
[key: `--${string}`]?: string | number | undefined | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment