mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
Body parser xml (#25331)
* adding react-owl-carousel types * Update Definitions by list Fix Test error * Fix tslint Fix tsconfig * Add new Type body-parser-xml
This commit is contained in:
4
types/body-parser-xml/body-parser-xml-tests.ts
Normal file
4
types/body-parser-xml/body-parser-xml-tests.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import bodyParser = require('body-parser');
|
||||
import bodyParserXml = require('body-parser-xml');
|
||||
|
||||
bodyParserXml(bodyParser);
|
||||
11
types/body-parser-xml/index.d.ts
vendored
Normal file
11
types/body-parser-xml/index.d.ts
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
// Type definitions for body-parser-xml 1.1
|
||||
// Project: https://github.com/fiznool/body-parser-xml
|
||||
// Definitions by: tbounsiar <https://github.com/tbounsiar>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import { Request, RequestHandler, Response, NextFunction } from 'express';
|
||||
|
||||
declare function bodyParserXml(bodyParser: any): (req: Request, res: Response, next: NextFunction) => void;
|
||||
|
||||
export = bodyParserXml;
|
||||
23
types/body-parser-xml/tsconfig.json
Normal file
23
types/body-parser-xml/tsconfig.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"body-parser-xml-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/body-parser-xml/tslint.json
Normal file
1
types/body-parser-xml/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user