Type alias to keep compatibility with @types/body-parser
interface NestExpressBodyParserOptions {
inflate?: boolean | undefined
limit?: number | string | undefined
type?: string | string[] | ((req: IncomingMessage) => any) | undefined
__index(key: string): unknown
}
Properties
Property |
Description |
inflate?: boolean | undefined
|
When set to true, then deflated (compressed) bodies will be inflated; when false, deflated bodies are rejected. Defaults to true.
|
limit?: number | string | undefined
|
Controls the maximum request body size. If this is a number,
then the value specifies the number of bytes; if it is a string,
the value is passed to the bytes library for parsing. Defaults to '100kb'.
|
type?: string | string[] | ((req: IncomingMessage) => any) | undefined
|
The type option is used to determine what media type the middleware will parse
|
Methods
__index()
|
__index(key: string): unknown
Parameters
Option |
Type |
Description |
key
|
string |
|
Returns
unknown
|