microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
src/typings/form-data/form-data.d.ts
16lines · modeblame
8ba55f4cJimmy Thomson10 years ago | 1 | // Type definitions for form-data |
| 2 | // Project: https://github.com/felixge/node-form-data | |
| 3 | // Definitions by: Carlos Ballesteros Velasco <https://github.com/soywiz> | |
| 4 | // Definitions: https://github.com/borisyankov/DefinitelyTyped | |
| 5 | | |
| 6 | // Imported from: https://github.com/soywiz/typescript-node-definitions/form-data.d.ts | |
| 7 | | |
| 8 | declare module "form-data" { | |
| 9 | export class FormData { | |
| 10 | append(key: string, value: any, options?: any): FormData; | |
| 11 | getHeaders(): Object; | |
| 12 | // TODO expand pipe | |
| 13 | pipe(to: any): any; | |
| 14 | submit(params: string|Object, callback: (error: any, response: any) => void): any; | |
| 15 | } | |
| 16 | } |