Skip to content

Index signature missing for OAuth.Header (typescript) #99

Open
@mskd12

Description

@mskd12

Hi,

I am using the output of toHeader in the fetch API and I see the following error:

error TS2322: Type 'Header' is not assignable to type 'Record<string, string> | Headers | string[][] | undefined'.
      Type 'Header' is not assignable to type 'Record<string, string>'.
        Index signature is missing in type 'Header'.

    136             headers: this.client.toHeader(body)

Any thoughts on how to fix it?

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