Add typings for express-sanitized

This commit is contained in:
Barth, Christopher
2017-07-12 16:31:55 -04:00
parent 6858db71f7
commit 06f69a27fa
4 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
import * as express from "express";
import * as expressSanitized from "express-sanitized";
let RoutingServer: express.Express = express();
RoutingServer.use(expressSanitized);

11
types/express-sanitized/index.d.ts vendored Normal file
View File

@@ -0,0 +1,11 @@
// Type definitions for express-sanitized 0.5
// Project: https://github.com/askhogan/express-sanitized
// Definitions by: Chris Barth <https://github.com/cjbarth/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module 'express-sanitized' {
import * as express from "express";
function e(): (req: express.Request, res: express.Response, next: Function) => void;
namespace e{}
export = e;
}

View File

@@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"express-sanitized-tests.ts"
]
}

View File

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