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