mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-17 13:00:35 +08:00
Add options parameter to form-data append method
The `append` method in `form-data` library optionally supports the third parameter, `options`. (https://github.com/form-data/node-form-data/blob/master/lib/form_data.js#L24). It can be a string or an object, so `any` type is most suitable for it.
This commit is contained in:
1 parent
73e4b46719
commit
b295fa645f
1 file changed
+1
-1
Vendored
+1
-1
@@ -7,7 +7,7 @@
|
||||
|
||||
declare module "form-data" {
|
||||
export class FormData {
|
||||
append(key: string, value: any): FormData;
|
||||
append(key: string, value: any, options?: any): FormData;
|
||||
getHeaders(): Object;
|
||||
// TODO expand pipe
|
||||
pipe(to: any): any;
|
||||
|
||||
Reference in new issue
Block a user