-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Wrong TypeScript type in jsPDF.table #3086
Comments
The code suggests that I think we can also improve the type of the Could you create a pull request? That would be awesome! |
I think strings will only work if
|
Fix: Wrong TypeScript type in jsPDF.table (parallax#3086) (parallax#3087)
Fixed. |
The declaration for jsPDF.table in types/index.d.ts is
but in the spec tests in test/specs/cell.spec.js the headers are passed as
Changing the headers to a list of strings
causes the tests to fail. It seems like it's not possible to create a table in TypeScript without ignoring the declaration.
The text was updated successfully, but these errors were encountered: