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

Fix types of custom CSS props #49539

Merged
merged 1 commit into from
Nov 29, 2024
Merged

Fix types of custom CSS props #49539

merged 1 commit into from
Nov 29, 2024

Conversation

ravicious
Copy link
Member

While working on UI for multi-port, I figured out that the generic argument that StyleFunction requires is equivalent to "The props received by the component where the style function is going to be consumed". In most cases it's just ComponentProps<'div'>, so I replaced any instances of StyleFunction<any> with StyleFunction<ComponentProps<'div'>>.

@ravicious ravicious added the no-changelog Indicates that a PR does not require a changelog entry label Nov 28, 2024
@ravicious ravicious requested review from bl-nero and removed request for rudream November 28, 2024 12:58
@ravicious ravicious added this pull request to the merge queue Nov 29, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Nov 29, 2024
@ravicious ravicious added this pull request to the merge queue Nov 29, 2024
Merged via the queue into master with commit 4c7b64f Nov 29, 2024
43 of 44 checks passed
@ravicious ravicious deleted the r7s/style-function branch November 29, 2024 13:47
@public-teleport-github-review-bot

@ravicious See the table below for backport results.

Branch Result
branch/v17 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/branch/v17 no-changelog Indicates that a PR does not require a changelog entry size/sm ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants