Skip to content

Invalid response type #324

@localhost5001

Description

@localhost5001

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.

Correct me if I am wrong.

Typescript version: 4.6.4
Mande version: 2.0.1

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions