Skip to content

Commit ba0d595

Browse files
authored
fix typing for environments without DOM lib (#1827)
1 parent 2a044d0 commit ba0d595

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/smooth-actors-tickle.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"openapi-fetch": patch
3+
---
4+
5+
Fix typing for environments without DOM lib

packages/openapi-fetch/src/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export interface ClientOptions extends Omit<RequestInit, "headers"> {
2424
}
2525

2626
export type HeadersOptions =
27-
| HeadersInit
27+
| Required<RequestInit>["headers"]
2828
| Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined>;
2929

3030
export type QuerySerializer<T> = (

0 commit comments

Comments
 (0)