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

EuiDataGrid type exports #2640

Merged
merged 4 commits into from
Dec 13, 2019
Merged

Conversation

thompsongl
Copy link
Contributor

@thompsongl thompsongl commented Dec 12, 2019

Summary

Closes #2635

Aside from adding EuiDataGridProps, this carries to completion only those definitions that had exports to start. If there are cases to be made for others, we can discuss here.

Checklist

- [ ] Checked in dark mode
- [ ] Checked in mobile
- [ ] Checked in IE11 and Firefox
- [ ] Props have proper autodocs
- [ ] Added documentation examples
- [ ] Added or updated jest tests
- [ ] Checked for breaking changes and labeled appropriately
- [ ] Checked for accessibility including keyboard-only and screenreader modes

  • A changelog entry exists and is marked appropriately

Copy link
Contributor

@myasonik myasonik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prop types I saw that aren't be exported:

  • EuiDataGridBodyProps
  • EuiDataGridCellValueProps
  • EuiDataGridColumnResizerProps
  • EuiDataGridHeaderRowProps
  • EuiDataGridHeaderCellProps
  • EuiDataGridInMemoryRendererProps
  • SchemaTypeScore

I don't think any of those are required for our current API... Not sure if y'all like to publish types that wouldn't be used by consumers or not but I don't think it would hurt really and it would future proof us a little if we ever exposed APIs for any of these.

src/components/datagrid/index.ts Show resolved Hide resolved
@chandlerprall
Copy link
Contributor

Looks like these need to be further exported from datagrid/index.ts?

@thompsongl
Copy link
Contributor Author

Looks like these need to be further exported from datagrid/index.ts?

Yep. If we want to go all out with exporting available types, I'm good with that. I'll update.

Copy link
Contributor

@chandlerprall chandlerprall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes LGTM, ❤️

@thompsongl thompsongl merged commit dffd0dc into elastic:master Dec 13, 2019
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.

Export types for EuiDataGrid
3 participants