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(angular): add request overloads based on observe property #1633

Conversation

QuietNatu
Copy link
Contributor

Status

READY

Description

Fixes #1631

  • Updated generateImplementation to add function overloads when isRequestOptions is true.
  • This ensures that when supplying observe to a request, it's return type will match what is returned by the HttpClient.

Todos

  • Tests
  • Documentation
  • Changelog Entry (unreleased)

@melloware melloware added this to the 7.2.0 milestone Sep 18, 2024
@melloware melloware requested a review from anymaniax September 18, 2024 11:40
melloware
melloware previously approved these changes Sep 18, 2024
@melloware
Copy link
Collaborator

Hmm looks like a build failure.

@QuietNatu
Copy link
Contributor Author

It seems to me that the yarn.lock has not been updated with yesterday's 7.1.1 release.

@melloware
Copy link
Collaborator

Agreed @anymaniax ?

anymaniax
anymaniax previously approved these changes Sep 18, 2024
@melloware
Copy link
Collaborator

OK made progress now some test failures!

@QuietNatu QuietNatu dismissed stale reviews from anymaniax and melloware via a76c24d September 19, 2024 09:15
@QuietNatu QuietNatu force-pushed the fix/angular/add-observe-function-overloads branch from a76c24d to e8e4a22 Compare September 19, 2024 09:45
@melloware melloware merged commit 398b667 into orval-labs:master Sep 19, 2024
2 checks passed
@QuietNatu QuietNatu deleted the fix/angular/add-observe-function-overloads branch September 19, 2024 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Angular: improve return type of requests to match observed value
3 participants