micro
micro copied to clipboard
9.4.1 - Wrong type for serve function
On TS programmatic usage from the docs does not work correctly, and it's due to the wrong type annotation of serve
function
https://github.com/vercel/micro/blob/main/packages/micro/types/src/lib/index.d.ts#L5
I think it's return type should be http.Server
There's a bug in 9.4.1. Use 9.4.0