Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zontafil opened this issue Nov 10, 2016 · 1 comment
Open

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

zontafil opened this issue Nov 10, 2016 · 1 comment
Labels

Comments

@zontafil
Copy link

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

@jmdobry
Copy link
Member

jmdobry commented Dec 12, 2016

I think it's a problem with js-data-http.d.ts. It's missing the definition for HttpAdapter#basePath

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants