Skip to content

fix(types): fix definition of optional TS theme properties#5186

Merged
chasestarr merged 2 commits intouber:masterfrom
alexgorbatchev:fix-optional-theme-properties
Oct 4, 2022
Merged

fix(types): fix definition of optional TS theme properties#5186
chasestarr merged 2 commits intouber:masterfrom
alexgorbatchev:fix-optional-theme-properties

Conversation

@alexgorbatchev
Copy link
Contributor

Description

A number of optional theme properties is currently not defined correctly in TypeScript and don't match flow types. Furthermore, they cause a very annoying issue of not being compatible with styletron and csstype because of null.

image

It's possible to workaround this with ?? undefined, however making this change across large code base is not ideal (and shouldn't be necessary IMO)

image

Scope

Patch: Bug Fix

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 3, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 5b7711c:

Sandbox Source
Basic usage Configuration

@chasestarr chasestarr merged commit d3d1367 into uber:master Oct 4, 2022
@alexgorbatchev alexgorbatchev deleted the fix-optional-theme-properties branch October 6, 2022 23:26
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.

2 participants