mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 20:39:17 +08:00
Add express-routemap (#25445)
This commit is contained in:
7
types/express-routemap/express-routemap-tests.ts
Normal file
7
types/express-routemap/express-routemap-tests.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import express = require('express');
|
||||
import displayRoutes = require('express-routemap');
|
||||
|
||||
const server = express();
|
||||
server.listen(3000, () => {
|
||||
displayRoutes(server); // $ExpectType void
|
||||
});
|
||||
10
types/express-routemap/index.d.ts
vendored
Normal file
10
types/express-routemap/index.d.ts
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
// Type definitions for express-routemap 1.1
|
||||
// Project: https://github.com/izelnakri/express-routemap#readme
|
||||
// Definitions by: icopp <https://github.com/icopp>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
import { Application } from 'express';
|
||||
|
||||
declare function displayRoutes(app: Application, filename?: string): void;
|
||||
export = displayRoutes;
|
||||
23
types/express-routemap/tsconfig.json
Normal file
23
types/express-routemap/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",
|
||||
"express-routemap-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/express-routemap/tslint.json
Normal file
1
types/express-routemap/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user