Skip to content

fix: extend constructor options types to allow additional properties #925

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

Merged
merged 2 commits into from
Aug 5, 2019

Conversation

dpopp07
Copy link
Contributor

@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.

Waiting to merge until these changes are made in the core and in the generator.

Edit: generator changes merged in and core version updated to include the corresponding changes.

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

codecov-io commented Aug 3, 2019

Codecov Report

Merging #925 into master will increase coverage by 0.04%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #925      +/-   ##
==========================================
+ Coverage   54.34%   54.38%   +0.04%     
==========================================
  Files          18       18              
  Lines        4501     4501              
  Branches      905      905              
==========================================
+ Hits         2446     2448       +2     
+ Misses       2053     2051       -2     
  Partials        2        2
Impacted Files Coverage Δ
natural-language-classifier/v1.ts 38.14% <ø> (ø) ⬆️
assistant/v1.ts 76.06% <ø> (ø) ⬆️
personality-insights/v3.ts 90.21% <ø> (ø) ⬆️
speech-to-text/v1-generated.ts 38.78% <ø> (ø) ⬆️
tone-analyzer/v3.ts 89.41% <ø> (ø) ⬆️
visual-recognition/v3.ts 36.47% <ø> (ø) ⬆️
language-translator/v3.ts 59.82% <ø> (ø) ⬆️
compare-comply/v1.ts 54.09% <ø> (ø) ⬆️
discovery/v1.ts 34.04% <ø> (ø) ⬆️
text-to-speech/v1-generated.ts 80.85% <ø> (ø) ⬆️
... and 2 more

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 321d080...141d2f6. Read the comment docs.

Copy link

@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

this version includes changes for allowing additional properties in the base service constructor
@dpopp07 dpopp07 changed the title fix: extend constructor options types to allow additional properties - WIP fix: extend constructor options types to allow additional properties Aug 5, 2019
@dpopp07 dpopp07 merged commit 03d241a into master Aug 5, 2019
@dpopp07 dpopp07 deleted the allow-additional-properties-constructor branch August 5, 2019 16:11
watson-github-bot pushed a commit that referenced this pull request Aug 5, 2019
## [4.3.1](v4.3.0...v4.3.1) (2019-08-05)

### Bug Fixes

* extend constructor options types to allow additional properties ([#925](#925)) ([03d241a](03d241a))
@watson-github-bot
Copy link
Collaborator

🎉 This PR is included in version 4.3.1 🎉

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
Development

Successfully merging this pull request may close these issues.

5 participants