micro icon indicating copy to clipboard operation
micro copied to clipboard

9.4.1 - Wrong type for serve function

Open amilosmanli opened this issue 1 year 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