mattpocock / ts-error-translator

VSCode extension to turn TypeScript errors into plain English
https://ts-error-translator.vercel.app
2.36k stars 91 forks source link

Translation request for 2556 #197

Closed refo closed 1 year ago

refo commented 1 year ago

Error Text

A spread argument must either have a tuple type or be passed to a rest parameter.

Supporting Information

Please provide other information which led to this error, and any specific questions you have about it:

export const createRoutePath = (
  key: keyof typeof pathCreators,
  args: Parameters<(typeof pathCreators)[typeof key]> = [],
) => pathCreators[key](...args);
                          ^^^^