Skip to content

EuiDataGrid type exports#2640

Merged
thompsongl merged 4 commits intoelastic:masterfrom
thompsongl:data-grid-types
Dec 13, 2019
Merged

EuiDataGrid type exports#2640
thompsongl merged 4 commits intoelastic:masterfrom
thompsongl:data-grid-types

Conversation

@thompsongl
Copy link
Copy Markdown
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
Copy Markdown
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.

@chandlerprall
Copy link
Copy Markdown
Contributor

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

@thompsongl
Copy link
Copy Markdown
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
Copy Markdown
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