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:
Roman Salnikov
2015-07-28 17:31:23 +05:00
parent 73e4b46719
commit b295fa645f
+1 -1
View File
@@ -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;