Closed localhost5001 closed 2 years ago
Consider the following code:
import { mande } from 'mande' const api = mande('baseUrl'); const response = api.get('1');
In this case response will be Promise<Response>, but it should be Promise<any> if no type specified since responseAs is json by default.
response
Promise<Response>
Promise<any>
responseAs
Correct me if I am wrong.
Typescript version: 4.6.4 Mande version: 2.0.1
Consider the following code:
In this case
response
will bePromise<Response>
, but it should bePromise<any>
if no type specified sinceresponseAs
is json by default.Correct me if I am wrong.
Typescript version: 4.6.4 Mande version: 2.0.1