@types/co-body
Advanced tools
Comparing version 5.1.0 to 5.1.1
@@ -24,11 +24,11 @@ // Type definitions for co-body 5.1 | ||
export interface Options { | ||
limit?: number | string; | ||
strict?: boolean; | ||
queryString?: qs.IParseOptions; | ||
jsonTypes?: string[]; | ||
returnRawBody?: boolean; | ||
formTypes?: string[]; | ||
textTypes?: string[]; | ||
encoding?: string; | ||
length?: number; | ||
limit?: number | string | undefined; | ||
strict?: boolean | undefined; | ||
queryString?: qs.IParseOptions | undefined; | ||
jsonTypes?: string[] | undefined; | ||
returnRawBody?: boolean | undefined; | ||
formTypes?: string[] | undefined; | ||
textTypes?: string[] | undefined; | ||
encoding?: string | undefined; | ||
length?: number | undefined; | ||
} | ||
@@ -35,0 +35,0 @@ } |
{ | ||
"name": "@types/co-body", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "TypeScript definitions for co-body", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/co-body", | ||
"license": "MIT", | ||
@@ -25,4 +26,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "a8aee9a5979aa48babf0c34a1ae98735c1dc1e287e5aa7380cddb4a4a92ba03d", | ||
"typeScriptVersion": "2.8" | ||
"typesPublisherContentHash": "69024dca97ab404e066ecf33fb38380cf72d6b5af8a2dc2c05dc143005408016", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -9,5 +9,46 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/co-body. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/co-body/index.d.ts) | ||
````ts | ||
// Type definitions for co-body 5.1 | ||
// Project: https://github.com/cojs/co-body | ||
// Definitions by: Joshua DeVinney <https://github.com/geoffreak> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.3 | ||
/// <reference types="node"/> | ||
/// <reference types="qs"/> | ||
import * as http from 'http'; | ||
import * as qs from 'qs'; | ||
declare namespace CoBody { | ||
type Context = http.IncomingMessage | { req: http.IncomingMessage }; | ||
export interface Parse { | ||
(context: Context, options?: Options): Promise<any>; | ||
text: (context: Context, options?: Options) => Promise<any>; | ||
form: (context: Context, options?: Options) => Promise<any>; | ||
json: (context: Context, options?: Options) => Promise<any>; | ||
} | ||
export interface Options { | ||
limit?: number | string | undefined; | ||
strict?: boolean | undefined; | ||
queryString?: qs.IParseOptions | undefined; | ||
jsonTypes?: string[] | undefined; | ||
returnRawBody?: boolean | undefined; | ||
formTypes?: string[] | undefined; | ||
textTypes?: string[] | undefined; | ||
encoding?: string | undefined; | ||
length?: number | undefined; | ||
} | ||
} | ||
declare var CoBody: CoBody.Parse; | ||
export = CoBody; | ||
```` | ||
### Additional Details | ||
* Last updated: Mon, 27 Apr 2020 16:08:34 GMT | ||
* Last updated: Tue, 06 Jul 2021 18:05:54 GMT | ||
* Dependencies: [@types/qs](https://npmjs.com/package/@types/qs), [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +55,0 @@ * Global values: none |
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 website
QualityPackage does not have a website.
Found 1 instance in 1 package
5170
0
58