Skip to content

Commit d5e35b5

Browse files
committed
improvement: for types after typescript 3.9 release
Typescript has changed the behavior of types that extends any. You can read more here devblogs.microsoft.com/typescript/announcing-typescript-3-9/#breaking-changes Search for "Type Parameters That Extend any No Longer Act as any"
1 parent 3e9c24b commit d5e35b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MiddlewareStore/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export class MiddlewareStore implements MiddlewareStoreContract {
119119
public async invokeMiddleware (
120120
middleware: ResolvedMiddlewareHandler,
121121
params: [HttpContextContract, () => Promise<void>],
122-
) {
122+
): Promise<void> {
123123
if (middleware.type === 'function') {
124124
return middleware.value(params[0], params[1], middleware.args)
125125
}

0 commit comments

Comments
 (0)