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 - component is not in TablePaginationProps #15959

Closed
murbanowicz opened this issue May 30, 2019 · 4 comments
Closed

TypeScript - component is not in TablePaginationProps #15959

murbanowicz opened this issue May 30, 2019 · 4 comments
Labels
status: waiting for author Issue with insufficient information typescript

Comments

@murbanowicz
Copy link

component is missing in TablePaginationProps which is causing TS error when trying to use <TablePagination> with component='div'

@eps1lon
Copy link
Member

eps1lon commented Jun 1, 2019

@merceyz That is not the props that are exported.

@murbanowicz Please follow the issue template (specifically versions, code and tsconfig.

@eps1lon eps1lon added the status: waiting for author Issue with insufficient information label Jun 1, 2019
@emp823
Copy link

emp823 commented Jun 5, 2019

Tech Version
Material-UI 4.0.2
React 16.8.6
Browser
TypeScript 3.5.1
etc.

removing | 'component' from the line @merceyz referenced seemed to fix it for me

@whytspace
Copy link

Just ran into the very same issue. component is not a valid prop for the TablePagination component, even though the docs say so.

I am willing to submit a pull request. @eps1lon Please let me know, which file is the correct one, if packages/material-ui/src/TablePagination/TablePagination.d.ts is not.

Tech Version
Material-UI v4.2.0 (latest)
React 16.8.6 (latest)
TypeScript 3.5.3 (latest)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting for author Issue with insufficient information typescript
Projects
None yet
Development

No branches or pull requests

6 participants