Skip to content

Overwrite config of an instance with typescript (v3) #62

Open
@zontafil

Description

@zontafil

hello,
I'm trying to change the http config (specifically the headers) after the adapter is instantiated.
I'm trying something like:

let adapter = new HttpAdapter({});
adapter.httpConfig = {headers: {}};
adapter.basePath = "test";

which results in "Property 'basePath' does not exist on type 'HttpAdapter'."

I can solve by setting the type of adapter to "any". Is there a better solution?

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions