Skip to content

Issues with typescript definitions #21

@cynodia

Description

@cynodia

If using config option "followRedirects", the param passed in the promise is an array of NettimeResponses. This causes TS-validation to fail as this is not part of the definition in nettime.d.ts
As far as I can see the return value should be
Promise<NettimeResponse | NettimeResponse []>

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