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

TypeScript cleanup #5

Merged
merged 1 commit into from
Dec 20, 2019
Merged

Conversation

thompsongl
Copy link

Summary

  • Does a better job of exporting EuiTableProps
  • Uses EuiTablePropsas the base for defining BasicTableProps and (by proxy) InMemoryTableProps
  • Misc. cleanup of linter comments that are no longer helpful (doesn't have anything to do with your PR; I just don't like them 😄)

@@ -172,13 +171,12 @@ export interface CriteriaWithPagination<T> extends Criteria<T> {
type CellPropsCallback<T> = (item: T, column: EuiBasicTableColumn<T>) => object;
type RowPropsCallback<T> = (item: T) => object;

interface BasicTableProps<T> {
interface BasicTableProps<T> extends Omit<EuiTableProps, 'onChange'> {
Copy link
Owner

Choose a reason for hiding this comment

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

@thompsongl curious, why do you have to do Omit onChange here?

@andreadelrio andreadelrio merged commit fa72330 into andreadelrio:auto-table Dec 20, 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.

2 participants