koa-body icon indicating copy to clipboard operation
koa-body copied to clipboard

Change request body type to unknown

Open SteveDeWald opened this issue 3 years ago • 0 comments

Merged declarations should use as narrow types as possible, since they could interfere with other other libraries or application code. I believe the unknown type is more appropriate here since it allows the body type to be further narrowed later on, e.g., by validation middleware.

SteveDeWald avatar Feb 19 '22 17:02 SteveDeWald