Skip to content

fix(http): make HttpResponse data type generic#8511

Open
medbenmakhlouf wants to merge 2 commits into
ionic-team:mainfrom
medbenmakhlouf:http-response-generic-data
Open

fix(http): make HttpResponse data type generic#8511
medbenmakhlouf wants to merge 2 commits into
ionic-team:mainfrom
medbenmakhlouf:http-response-generic-data

Conversation

@medbenmakhlouf

Copy link
Copy Markdown

Description

This change makes HttpResponse generic so callers can type the response payload with HttpResponse. It remains backward-compatible because the default type parameter is any, so existing usages of ┃
HttpResponse continue to work unchanged. The result is a small TypeScript API improvement with no runtime impact.

Change Type

  • Fix
  • Feature
  • Refactor
  • Breaking Change
  • Documentation
  • Other (CI, chores, etc.)

Rationale / Problems Fixed

Tests or Reproductions

Screenshots / Media

Platforms Affected

  • Android
  • iOS
  • Web

Notes / Comments

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.

1 participant