mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-28 12:43:06 +08:00
Merge pull request #3361 from jt000/master
Adding basic support for ejs-locals and express-partials
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
/// <reference path="../express/express.d.ts" />
|
||||
/// <reference path="ejs-locals.d.ts" />
|
||||
|
||||
import express = require('express');
|
||||
import ejsLocals = require('ejs-locals');
|
||||
|
||||
var app: express.Express = express();
|
||||
app.engine('ejs', ejsLocals);
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
// Type definitions for ejs-locals
|
||||
// Project: https://github.com/randometc/ejs-locals
|
||||
// Definitions by: jt000 <https://github.com/jt000>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "ejs-locals" {
|
||||
|
||||
function ejsLocals(): Function;
|
||||
|
||||
export = ejsLocals;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/// <reference path="../express/express.d.ts" />
|
||||
/// <reference path="express-partials.d.ts" />
|
||||
|
||||
import express = require('express');
|
||||
import partials = require('express-partials');
|
||||
|
||||
var app: express.Express = express();
|
||||
app.use(partials());
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// Type definitions for express-partials
|
||||
// Project: https://github.com/publicclass/express-partials
|
||||
// Definitions by: jt000 <https://github.com/jt000>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../express/express.d.ts" />
|
||||
|
||||
declare module "express-partials" {
|
||||
import express = require('express');
|
||||
|
||||
function expressPartials(options?: any): express.RequestHandler;
|
||||
|
||||
export = expressPartials;
|
||||
}
|
||||
Reference in New Issue
Block a user