You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 24, 2026. It is now read-only.
src/index.ts:19:4 - error TS7017: Element implicitly has an 'any' type because type 'Express' has no index signature. 19 app[route.method](route.path, (request: Request, response: Response, next: Function) => { ~~~~~~~~~~~~~~~~~
Is there a way to combine modules in this elegant way and enable strict?
Hi There
In typescript-express-example/src/index.ts you have some beautifully elegant code:
`
// register all application routes
`
That registers all applications routes.
If you enable
"strict": true
in the tsconfig.json I get the error:
src/index.ts:19:4 - error TS7017: Element implicitly has an 'any' type because type 'Express' has no index signature. 19 app[route.method](route.path, (request: Request, response: Response, next: Function) => { ~~~~~~~~~~~~~~~~~Is there a way to combine modules in this elegant way and enable strict?
Kind regards