Skip to content

Commit

Permalink
fix type for undici
Browse files Browse the repository at this point in the history
  • Loading branch information
berndfuhrmann committed Sep 20, 2024
1 parent 0be2dd6 commit a263208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk_contrib/fetch/lib/fetch_p.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function captureFetchModule(
subsegmentCallback?: (subsegment: AWSXRay.Subsegment, req: fetchModule.Request, res: fetchModule.Response | null, error?: Error | undefined) => void):
(url: URL | fetchModule.RequestInfo, init?: fetchModule.RequestInit | undefined) => Promise<fetchModule.Response>;

export function enableCapture<Fetch extends typeof globalThis.fetch, Request extends typeof globalThis.Request>(
export function enableCapture<Fetch, Request>(
fetch: Fetch,
request: Request,
downstreamXRayEnabled?: boolean,
Expand Down

0 comments on commit a263208

Please sign in to comment.