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(typescript): fixing DataTable sortRow type #18073

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gdelory
Copy link

@gdelory gdelory commented Nov 14, 2024

Closes #18063

Changelog

Changed

  • Fixes Datatable.sortRow typescript definition

Testing / Reviewing

Create a simple Datatable with a custom sorting function using the sortRow property, and use the key and compare properties of the 3rg argument?

Here is an example of the work around needed today, the cast as DataTableProps<Item, string[]>['sortRow'] should not be needed once the fix is integrated

@gdelory gdelory requested a review from a team as a code owner November 14, 2024 13:33
@gdelory gdelory requested review from kennylam and emyarod November 14, 2024 13:33
Copy link
Contributor

github-actions bot commented Nov 14, 2024

All contributors have signed the DCO.
Posted by the DCO Assistant Lite bot.

Copy link

netlify bot commented Nov 14, 2024

Deploy Preview for v11-carbon-web-components ready!

Name Link
🔨 Latest commit e777cf0
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-web-components/deploys/673d6549ae54fb00088a8e52
😎 Deploy Preview https://deploy-preview-18073--v11-carbon-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Nov 14, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit e777cf0
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/673d65491971750008681a02
😎 Deploy Preview https://deploy-preview-18073--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Nov 14, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit e777cf0
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/673d6549d96c2b00084f8050
😎 Deploy Preview https://deploy-preview-18073--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@gdelory
Copy link
Author

gdelory commented Nov 14, 2024

I have read the DCO document and I hereby sign the DCO.

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.

[Bug]: TypeScript type definition issue on Datatable.sortRow
1 participant