Skip to content

Type error in rest-api/helpers.ts  #171

@fjcalzado

Description

@fjcalzado

An error is preveting the pending pull requests to pass travis integration successfully. It seems a type error in rest-api/helpers.ts. See full trace below:

ERROR in [at-loader] ./src/rest-api/helpers.ts:12:14 
    TS2322: Type '{ method: string; mode: RequestMode; credentials: RequestCredentials; headers: { 'Accept': string...' is not assignable to type 'Partial<RequestInit>'.
  Types of property 'headers' are incompatible.
    Type '{ 'Accept': string; 'Content-Type': string; }' is not assignable to type 'Headers | string[][]'.
      Type '{ 'Accept': string; 'Content-Type': string; }' is not assignable to type 'string[][]'.
        Property 'length' is missing in type '{ 'Accept': string; 'Content-Type': string; }'.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions