lambda-api icon indicating copy to clipboard operation
lambda-api copied to clipboard

Typescript types for `type` is incorrect, should be "this"

Open adworacz opened this issue 2 years ago • 1 comments

https://github.com/jeremydaly/lambda-api/blob/fc93110a8b9766c93a953deea67d13b9637519d2/index.d.ts#L197

https://github.com/jeremydaly/lambda-api/blob/2224ddf383e49285e9246e34409a39fec1fa57b5/lib/response.js#L407-L413

The current Typescript types for Response.type are incorrect, which breaks the ability to chain. Should be this instead.

adworacz avatar Sep 03 '21 00:09 adworacz

Actually looks like this is fixed by https://github.com/jeremydaly/lambda-api/pull/181

Can we get this merged?

adworacz avatar Sep 03 '21 00:09 adworacz