Replies: 1 comment 8 replies
-
It technically does. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What would you like to discuss?
I'm in the process of updating to the latest version of got. According to the docs CancelableRequest.json() returns a Promise
However the types specified for got show it returning a CancelableRequest which means I just can't get a proper object out of it???
got/source/as-promise/types.ts
Line 36 in f0ac0b3
Honestly the whole change from promises to CancelableRequests is rather confusing, most of the docs refer to got returning a Promise while the new types all use
CancelableRequest
which doesn't support any of the usual Promise interface... Is there something I'm missing?Checklist
Beta Was this translation helpful? Give feedback.
All reactions