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

fix: extend constructor options type to allow additional properties #35

Merged
merged 1 commit into from
Aug 5, 2019

Conversation

dpopp07
Copy link
Member

@dpopp07 dpopp07 commented Aug 2, 2019

We expose the axios config options in the constructor but we don't allow any flexibility in the constructor options type. This will allow TypeScript users to use the request parameters like the axios config properties.

this will allow TypeScript users to use request parameters like the `axios` config properties. we support these in the code but not in the constructor options type
@codecov
Copy link

codecov bot commented Aug 2, 2019

Codecov Report

Merging #35 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #35   +/-   ##
=======================================
  Coverage   93.06%   93.06%           
=======================================
  Files          12       12           
  Lines         519      519           
  Branches      153      154    +1     
=======================================
  Hits          483      483           
  Misses         35       35           
  Partials        1        1
Impacted Files Coverage Δ
lib/base_service.ts 91.66% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fd569df...101aa89. Read the comment docs.

Copy link
Member

@padamstx padamstx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dpopp07 dpopp07 merged commit 70af0c9 into master Aug 5, 2019
@dpopp07 dpopp07 deleted the allow-additional-properties-constructor branch August 5, 2019 05:18
ibm-devx-automation pushed a commit that referenced this pull request Aug 5, 2019
## [0.3.4](v0.3.3...v0.3.4) (2019-08-05)

### Bug Fixes

* extend constructor options type to allow additional properties ([#35](#35)) ([70af0c9](70af0c9))
@ibm-devx-automation
Copy link

🎉 This PR is included in version 0.3.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

4 participants