-
Notifications
You must be signed in to change notification settings - Fork 84
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(tags): update TagProps interface so only the data tag types are exported #5548
Conversation
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 0d46234:
|
Test summaryRun details
View run in Cypress Dashboard ➡️ Flakiness
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
5f8f493
to
3102fd0
Compare
3102fd0
to
9a0ece5
Compare
9e5784c
to
0c8a63a
Compare
…xported Updates the `TagProps` interface to ensure only the `data-` props are exported and extended in the public interfaces. A new private `RestProps` interface has been added to support passing the rest props object into the `tags` util. The previous implementation was preventing `intellisense` from displaying the correct types for the `Sidebar` component; instead it was being assigned `any`. fix #5534
e6d14ba
0c8a63a
to
e6d14ba
Compare
🎉 This PR is included in version 111.5.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
fix #5534
Proposed behaviour
Updates the
TagProps
interface to ensure only thedata-
props are exported and extended in the public interfaces. A new privateRestProps
interface has been added to support passing the rest props object into thetags
util. The previous implementation was preventingintellisense
from displaying the correct types for theSidebar
component; instead it was being assignedany
.Current behaviour
The
TagProps
interface supports any type via[restKeys: string] any
which prevents intellisense from computing the types of components and instead displayingany
Checklist
d.ts
file added or updated if requiredQA
Additional context
Testing instructions
The following CodeSandbox is an example of the broken behaviour.
You can see the new behaviour by looking at the version in the comment by
codesandbox[bot]
.