Add submit method definition to form-data

This method is currently missing. Here is just a basic interface to pass type checks. If you'd help me figure out how to depend on Node TSD, I'd try to make signature more correct, and return http or https response instead of just `any`. Also planning to add `params` object interface.
This commit is contained in:
Roman Salnikov
2015-08-26 11:07:48 +05:00
parent fa8d9683f3
commit bb1b99052b

View File

@@ -11,5 +11,6 @@ declare module "form-data" {
getHeaders(): Object;
// TODO expand pipe
pipe(to: any): any;
submit(params: string|Object, callback: (error: any, response: any) => void): any;
}
}