@types/form-data
Advanced tools
Comparing version 0.0.33 to 2.2.0
@@ -1,4 +0,6 @@ | ||
// Type definitions for form-data | ||
// Project: https://github.com/felixge/node-form-data | ||
// Definitions by: Carlos Ballesteros Velasco <https://github.com/soywiz>, Leon Yu <https://github.com/leonyu> | ||
// Type definitions for form-data 2.2 | ||
// Project: https://github.com/form-data/form-data | ||
// Definitions by: Carlos Ballesteros Velasco <https://github.com/soywiz> | ||
// Leon Yu <https://github.com/leonyu> | ||
// BendingBender <https://github.com/BendingBender> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -9,19 +11,33 @@ | ||
/// <reference types="node" /> | ||
import * as stream from 'stream'; | ||
import * as http from 'http'; | ||
export = FormData; | ||
import * as stream from "stream"; | ||
declare class FormData extends stream.Readable { | ||
append(key: string, value: any, options?: any): void; | ||
getHeaders(): FormData.Dictionary<string>; | ||
submit(params: string | Object, callback: (error: any, response: any) => void): any; | ||
append(key: string, value: any, options?: FormData.AppendOptions | string): void; | ||
getHeaders(): FormData.Headers; | ||
submit(params: string | FormData.SubmitOptions, callback?: (error: Error | undefined, response: http.IncomingMessage) => void): http.ClientRequest; | ||
getBoundary(): string; | ||
getLength(callback: (err: Error, length: number) => void): void; | ||
getLength(callback: (err: Error | undefined, length: number) => void): void; | ||
getLengthSync(): number; | ||
hasKnownLength(): boolean; | ||
} | ||
declare namespace FormData { | ||
interface Dictionary<T> { | ||
[key: string]: T; | ||
interface Headers { | ||
[key: string]: any; | ||
} | ||
interface AppendOptions { | ||
header?: string | Headers; | ||
knownLength?: number; | ||
filename?: string; | ||
filepath?: string; | ||
contentType?: string; | ||
} | ||
interface SubmitOptions extends http.RequestOptions { | ||
protocol?: 'https:' | 'http:'; | ||
} | ||
} |
{ | ||
"name": "@types/form-data", | ||
"version": "0.0.33", | ||
"version": "2.2.0", | ||
"description": "TypeScript definitions for form-data", | ||
"license": "MIT", | ||
"author": "Carlos Ballesteros Velasco <https://github.com/soywiz>, Leon Yu <https://github.com/leonyu>", | ||
"contributors": [ | ||
{ | ||
"name": "Carlos Ballesteros Velasco", | ||
"url": "https://github.com/soywiz" | ||
}, | ||
{ | ||
"name": "Leon Yu", | ||
"url": "https://github.com/leonyu" | ||
}, | ||
{ | ||
"name": "BendingBender", | ||
"url": "https://github.com/BendingBender" | ||
} | ||
], | ||
"main": "", | ||
@@ -17,4 +30,4 @@ "repository": { | ||
"peerDependencies": {}, | ||
"typings": "index.d.ts", | ||
"typesPublisherContentHash": "9cc91a75fca75af54344c0e61a0c29e9f9939ea01d67642720916db50a7245ef" | ||
"typesPublisherContentHash": "be2e4f8f47d5e86921cc5c308ef57e885708b9e43ecb45d593104ccb43ff828a", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -5,15 +5,13 @@ # Installation | ||
# Summary | ||
This package contains type definitions for form-data (https://github.com/felixge/node-form-data). | ||
This package contains type definitions for form-data (https://github.com/form-data/form-data). | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/form-data | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/form-data | ||
Additional Details | ||
* Last updated: Tue, 22 Nov 2016 23:38:10 GMT | ||
* File structure: ProperModule | ||
* Library Dependencies: node | ||
* Module Dependencies: stream | ||
* Global values: FormData | ||
* Last updated: Mon, 24 Jul 2017 18:01:45 GMT | ||
* Dependencies: stream, http, node | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Carlos Ballesteros Velasco <https://github.com/soywiz>, Leon Yu <https://github.com/leonyu>. | ||
These definitions were written by Carlos Ballesteros Velasco <https://github.com/soywiz>, Leon Yu <https://github.com/leonyu>, BendingBender <https://github.com/BendingBender>. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4077
1
35
17