Add types for express-ejs-layouts NPM package (#20992)

* Revert "Add tsline file"

This reverts commit a0f8c9acc3.

* Revert "Rename .d.ts file per guidelines"

This reverts commit 7eb6f76ab5.

* Revert "Add types for ZeroMQ.js, derived from the 'zmq' type definitions"

This reverts commit d5d3cd0fca.

* Add types for express-ejs-layouts NPM package

* Fix PR comment on tests
This commit is contained in:
Erik Mavrinac 2017-10-26 11:53:10 -07:00 committed by Sheetal Nandi
parent 73823c7492
commit 0ec4bb301c
4 changed files with 48 additions and 0 deletions

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

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",
"express-ejs-layouts-tests.ts"
]
}

View File

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