koajs / koa-body

koa body parser middleware
MIT License
950 stars 130 forks source link

Change request body type to unknown #202

Open SteveDeWald opened 2 years ago

SteveDeWald commented 2 years ago

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.