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: specify a more precise type for DuffelError headers #910

Merged
merged 1 commit into from
Apr 29, 2024

Conversation

smoogly
Copy link
Contributor

@smoogly smoogly commented Apr 21, 2024

Client creates DuffelError with headers directly passed from fetch. Even though headers satisfy Record<string, string>, that type isn't usable in practice for consumers of the library, e.g. when checking rate limit headers, — Headers is more precise.

Client creates DuffelError with headers directly passed from `fetch`.
Even though headers satisfy `Record<string, string>`, that type
isn't usable in practice for consumers of the library,
e.g. when checking rate limit headers, — `Headers` is more precise.
@smoogly smoogly requested a review from a team as a code owner April 21, 2024 18:13
@igorp1 igorp1 merged commit d90c53a into duffelhq:main Apr 29, 2024
4 checks passed
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.

3 participants