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 error: A tuple type element list cannot be empty. #2883

Closed
Xenoage opened this issue Aug 28, 2020 · 2 comments
Closed

TypeScript error: A tuple type element list cannot be empty. #2883

Xenoage opened this issue Aug 28, 2020 · 2 comments

Comments

@Xenoage
Copy link
Contributor

Xenoage commented Aug 28, 2020

  1. Installed jspdf in package.json, "jspdf": "^2.1.0"
  2. When compiling my project with typescript, I get the following error:
[app-scripts] typescript: .../App/node_modules/jspdf/types/index.d.ts, line: 1334 
[app-scripts] A tuple type element list cannot be empty.
  1. Can be fixed by adding "any" before the "[]" type at this position
export interface jsPDFAPI {
  events: any[];   // any[] instead of just []
}
@HackbrettXXX
Copy link
Collaborator

Ah, thanks for the report. Could you prepare a pull request?

@Xenoage
Copy link
Contributor Author

Xenoage commented Aug 28, 2020

See #2884
Closing this issue

@Xenoage Xenoage closed this as completed Aug 28, 2020
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

No branches or pull requests

2 participants