Skip to content

Commit 2b4e478

Browse files
committed
Make userHeaders optional
1 parent f908cb2 commit 2b4e478

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ interface Options {
2020
declare class FormData extends stream.Readable {
2121
constructor(options?: Options);
2222
append(key: string, value: any, options?: FormData.AppendOptions | string): void;
23-
getHeaders(userHeaders: FormData.Headers): FormData.Headers;
23+
getHeaders(userHeaders?: FormData.Headers): FormData.Headers;
2424
submit(
2525
params: string | FormData.SubmitOptions,
2626
callback?: (error: Error | null, response: http.IncomingMessage) => void

0 commit comments

Comments
 (0)