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

Fixes for --exactOptionalPropertyTypes TS flag #827

Merged
merged 1 commit into from Aug 31, 2021
Merged

Fixes for --exactOptionalPropertyTypes TS flag #827

merged 1 commit into from Aug 31, 2021

Commits on Aug 31, 2021

  1. Fixes for --exactOptionalPropertyTypes TS flag

    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.
    geakstr committed Aug 31, 2021
    Copy the full SHA
    3a54676 View commit details
    Browse the repository at this point in the history