Created
March 17, 2022 16:46
-
-
Save ViliamKopecky/d066f2f588b37599ae578e2537d2a3e0 to your computer and use it in GitHub Desktop.
TypeScript definitions for React.CSSProperties with custom CSS properties support
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 namespace React { | |
interface CSSProperties { | |
[key: `--${string}`]: string | number | null | undefined | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment