Skip to content

Commit

Permalink
fix(types): add interface stub for RequestInit
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhe committed Sep 13, 2024
1 parent 5306c73 commit b6cd717
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 b6cd717

Please sign in to comment.