Skip to content

Commit b6cd717

Browse files
committed
fix(types): add interface stub for RequestInit
1 parent 5306c73 commit b6cd717

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.changeset/forty-cooks-deny.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@smithy/types": patch
3+
---
4+
5+
add interface stub for browser RequestInit type

packages/types/src/http/httpHandlerInitialization.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,10 @@ export interface FetchHttpHandlerOptions {
125125
*/
126126
requestInit?: (httpRequest: IHttpRequest) => RequestInit;
127127
}
128+
129+
declare global {
130+
/**
131+
* interface merging stub.
132+
*/
133+
interface RequestInit {}
134+
}

0 commit comments

Comments
 (0)