forge icon indicating copy to clipboard operation
forge copied to clipboard

fix(button-toggle): relax the generic type on the event data interfaces to `any`

Open DRiFTy17 opened this issue 6 months ago • 1 comments

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added/updated: N
  • Docs have been added/updated: N
  • Does this PR introduce a breaking change? N
  • I have linked any related GitHub issues to be closed when this PR is merged? N

Describe the new behavior?

While I would prefer to keep unknown since that is technically more correct, any is still appropriate, and it helps alleviate some friction in framework bindings such as in Angular where you cannot access the value inline due to type conflicts. This requires the use of $any() in some cases.

DRiFTy17 avatar Aug 09 '24 22:08 DRiFTy17