imported 25 definitions from typescript-node-definitions

first batch: the easy pickings

- as per https://github.com/borisyankov/DefinitelyTyped/issues/115
- added DT headers (scraped creators from git history)
- added tests
- some modifications
- added CONTRIBUTORS.md for the substantial defs (>50 LOC)
This commit is contained in:
Bart van der Schoor
2014-04-22 22:09:35 +02:00
parent 033d3ae33e
commit 09f3d7a8dc
51 changed files with 3420 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
/// <reference path="form-data.d.ts" />
import formData = require('form-data');
var value: any;
var fd = new formData.FormData();
var obj: Object = fd.getHeaders();
value = fd.pipe(value);
+15
View File
@@ -0,0 +1,15 @@
// Type definitions for fibers
// Project: https://github.com/felixge/node-form-data
// Definitions by: Carlos Ballesteros Velasco <https://github.com/soywiz>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
// Imported from: https://github.com/soywiz/typescript-node-definitions/form-data.d.ts
declare module "form-data" {
export class FormData {
append(key: string, value: any): FormData;
getHeaders(): Object;
// TODO expand pipe
pipe(to: any): any;
}
}