-
Notifications
You must be signed in to change notification settings - Fork 182
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Node.js version: 24.12.0
OS version: linux
Description: adding an array of middlewares causes a typescript error.
const middlewares?: Array<RouterMiddleware>=...
router.use(...middlewares) //used to work in old version.
router.use(middlewares[0],middlewares[1], ...middlewares) //this worksthe old type definition was
use(...middleware: Array<Router.Middleware<StateT, ContextT>>): Router<StateT, ContextT>;Actual behavior
Expected behavior
no Error for router.use(...middlewares)
Code to reproduce
Checklist
- I have searched through GitHub issues for similar issues.
- I have completely read through the README and documentation.
- I have tested my code with the latest version of Node.js and this package and confirmed it is still not working.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working