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:
tbounsiar
2018-04-27 00:13:59 +02:00
committed by Wesley Wigham
parent c19e1e8289
commit fe5ac79ff9
4 changed files with 39 additions and 0 deletions

View 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
View 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;

View 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"
]
}

View File

@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }