Skip to content

Commit

Permalink
fix(types): add interface stub for RequestInit (#1403)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhe authored Sep 13, 2024
1 parent c0bbe8f commit e7b438b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/forty-cooks-deny.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@smithy/types": patch
---

add interface stub for browser RequestInit type
7 changes: 7 additions & 0 deletions packages/types/src/http/httpHandlerInitialization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,10 @@ export interface FetchHttpHandlerOptions {
*/
requestInit?: (httpRequest: IHttpRequest) => RequestInit;
}

declare global {
/**
* interface merging stub.
*/
interface RequestInit {}
}

0 comments on commit e7b438b

Please sign in to comment.