Skip to content

TypeScript cleanup#5

Merged
andreadelrio merged 1 commit intoandreadelrio:auto-tablefrom
thompsongl:auto-table
Dec 20, 2019
Merged

TypeScript cleanup#5
andreadelrio merged 1 commit intoandreadelrio:auto-tablefrom
thompsongl:auto-table

Conversation

@thompsongl
Copy link
Copy Markdown

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 😄)

type RowPropsCallback<T> = (item: T) => object;

interface BasicTableProps<T> {
interface BasicTableProps<T> extends Omit<EuiTableProps, 'onChange'> {
Copy link
Copy Markdown
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