mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
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:
@@ -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);
|
||||
Vendored
+15
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user