Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(react): fixes for
--exactOptionalPropertyTypes
TS flag (#827)
TypeScript 4.4 introduced new `--exactOptionalPropertyTypes` flag. With this flag enabled typescript compiler strictly distinguish between `?` and `undefined` type. Currently `@types/react:17.0` package has `className?: string | undefined` and `style?: CSSProperties | undefined` specified for html attributes, but linaria types are only marked as `?` but `undefined`. This patch fixes this incompatibility.
- Loading branch information