Closed refo closed 1 year ago
A spread argument must either have a tuple type or be passed to a rest parameter.
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); ^^^^
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: