Answer the question
In order to leave comments, you need to log in
How can I correctly describe the type for the residual parameters of the function?
I wrote
use(...args: PathParams[] | RequestHandler[] | RequestHandlerParams[])
error TS2370: A rest parameter must be of an array type.
use(...args: (PathParams | RequestHandler | RequestHandlerParams)[])
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question