Skip to content

Improve type information for the Button component - #5724

Merged
greenbonebot merged 1 commit into
mainfrom
button-typing
Oct 16, 2026
Merged

greenbonebot merged 1 commit into
mainfrom
button-typing

Conversation

@bjoernricks

Copy link
Copy Markdown
Contributor

What

Improve type information for the Button component

Why

The value of a Button can have only one specific type at the same time. Therefore use generics to define the input and output types of the button. A button can have a convert function that converts the input type to an output type. For example a string input that is converted to an integer.

Also derive the type from its parent class so all possible props are known and defined.

The value of a Button can have only one specific type at the same time.
Therefore use generics to define the input and output types of the
button. A button can have a convert function that converts the input
type to an output type. For example a string input that is converted to
an integer.

Also derive the type from its parent class so all possible props are
known and defined.
@bjoernricks
bjoernricks requested a review from a team as a code owner October 16, 2026 06:54
@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA 4f2ab66.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

@greenbonebot
greenbonebot enabled auto-merge (rebase) October 16, 2026 06:54
@codecov

codecov Bot commented Oct 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.81%. Comparing base (af9a7d0) to head (4f2ab66).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5724   +/-   ##
=======================================
  Coverage   87.81%   87.81%           
=======================================
  Files        1326     1326           
  Lines       34624    34624           
  Branches    10372    10372           
=======================================
  Hits        30404    30404           
  Misses       3818     3818           
  Partials      402      402           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@greenbonebot
greenbonebot merged commit bc2490b into main Oct 16, 2026
28 checks passed
@greenbonebot
greenbonebot deleted the button-typing branch October 16, 2026 07:14
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.

3 participants