mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-04 19:42:46 +08:00
Add typings for express-sanitized
This commit is contained in:
6
types/express-sanitized/express-sanitized-tests.ts
Normal file
6
types/express-sanitized/express-sanitized-tests.ts
Normal 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
11
types/express-sanitized/index.d.ts
vendored
Normal 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;
|
||||
}
|
||||
22
types/express-sanitized/tsconfig.json
Normal file
22
types/express-sanitized/tsconfig.json
Normal 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"
|
||||
]
|
||||
}
|
||||
1
types/express-sanitized/tslint.json
Normal file
1
types/express-sanitized/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user