Closed Nokel81 closed 4 years ago
I just tested it with Node.JS v12.18.0, Typescript v4.0.2 and Got v11.6.2.
The type of res
is Response<unknown>
which is correct.
Ah I see now what caused me to fail, I had a function that returned Options
which doesn't help the typing very much....
Sorry for the noise.
Though I do think that the type for the options of got.stream(...)
should be exported.
Describe the bug
Actual behaviour
The type of
res
in the following isunknown
:Expected behaviour
The type to be
Response
Checklist