From c9203eb3bd37ef88a192ece3720428c096799743 Mon Sep 17 00:00:00 2001 From: Mark Date: Tue, 26 Aug 2025 20:18:45 -0400 Subject: [PATCH] fix: add responseHeaders to typings.d.ts Updates the typings to include the {responseHeaders} object in the `onNext` callback. --- typings.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typings.d.ts b/typings.d.ts index c5caa3e..9088592 100644 --- a/typings.d.ts +++ b/typings.d.ts @@ -12,7 +12,7 @@ declare function MultipartFetchFunction(url: string, params: { headers?: Record; credentials?: string; body?: string; - onNext: (result: T[]) => void; + onNext: (result: T[], context: {responseHeaders: Headers}) => void; onError: (error: unknown) => void; onComplete : () => void }): void