micro icon indicating copy to clipboard operation
micro copied to clipboard

9.4.1 - Wrong type for serve function

Open amilosmanli opened this issue 3 years ago • 1 comments

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

amilosmanli avatar Aug 16 '22 22:08 amilosmanli

There's a bug in 9.4.1. Use 9.4.0

pmbanugo avatar Aug 17 '22 09:08 pmbanugo

The code has been significantly changed with v10. Please reopen or create a new issue with a reproduction is you are still seeing this issue on v10. Thanks!

leerob avatar Nov 25 '22 21:11 leerob