Skip to content

Fix the Handler argument types missing request.params#27

Open
opl- wants to merge 1 commit intotherne:masterfrom
opl-:fix/context-types
Open

Fix the Handler argument types missing request.params#27
opl- wants to merge 1 commit intotherne:masterfrom
opl-:fix/context-types

Conversation

@opl-
Copy link
Copy Markdown

@opl- opl- commented Aug 15, 2020

The inferred types for Handlers were missing the ctx.request.params property, resulting in an error when attempting to access them.

Also fixes the default value for KoaCompatibleMiddleware's generic type CustomT (custom context) being wrong. The previous type was equivalent anyway, but it's still a misleading hint for developers.

Fixes #26

Also fixes the default value for `KoaCompatibleMiddleware`'s generic type `CustomT` (custom context) being wrong. The previous type was equivalent anyway, but it's still a misleading hint for developers.
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 88.889% when pulling 3e306ed on opl-:fix/context-types into 7d6c930 on therne:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Types are missing the ctx.request.params property

2 participants