Skip to content

HttpClientResponse error on build typescript 2.4.1 #690

@Hennadiy

Description

@Hennadiy

Category

  • Question
  • Typo
  • Bug
  • Additional article idea

Using typescript 2.4.1 it gives an error:
node_modules\@microsoft\sp-http\lib\httpClient\HttpClientResponse.d.ts(14,21): error TS2420: Class 'HttpClientResponse' incorrectly implements interface 'Response'.

Because of different types of field "type".
Class field:
readonly type: string;
Interface field:
readonly type: ResponseType;

If in class field type change to "ResponseType" error disappears.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions