mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Add types for express-ejs-layouts NPM package (#20992)
* Revert "Add tsline file" This reverts commita0f8c9acc3. * Revert "Rename .d.ts file per guidelines" This reverts commit7eb6f76ab5. * Revert "Add types for ZeroMQ.js, derived from the 'zmq' type definitions" This reverts commitd5d3cd0fca. * Add types for express-ejs-layouts NPM package * Fix PR comment on tests
This commit is contained in:
parent
73823c7492
commit
0ec4bb301c
7
types/express-ejs-layouts/express-ejs-layouts-tests.ts
Normal file
7
types/express-ejs-layouts/express-ejs-layouts-tests.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import * as express from 'express';
|
||||
import * as expressEjsLayouts from 'express-ejs-layouts';
|
||||
|
||||
function expressRequestHandlerTest() {
|
||||
const app = express()
|
||||
.use(expressEjsLayouts());
|
||||
}
|
||||
15
types/express-ejs-layouts/index.d.ts
vendored
Normal file
15
types/express-ejs-layouts/index.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
// Type definitions for express-ejs-layouts 2.3
|
||||
// Project: https://github.com/Soarez/express-ejs-layouts
|
||||
// Definitions by: Erik Mavrinac <https://github.com/erikma>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
import { RequestHandler } from 'express';
|
||||
|
||||
declare function expressEjsLayouts(): RequestHandler;
|
||||
|
||||
declare namespace expressEjsLayouts {
|
||||
}
|
||||
|
||||
export = expressEjsLayouts;
|
||||
23
types/express-ejs-layouts/tsconfig.json
Normal file
23
types/express-ejs-layouts/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-ejs-layouts-tests.ts"
|
||||
]
|
||||
}
|
||||
3
types/express-ejs-layouts/tslint.json
Normal file
3
types/express-ejs-layouts/tslint.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user