mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
Adding basic ejs-locals support
This commit is contained in:
8
ejs-locals/ejs-locals-tests.ts
Normal file
8
ejs-locals/ejs-locals-tests.ts
Normal file
@@ -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);
|
||||
11
ejs-locals/ejs-locals.d.ts
vendored
Normal file
11
ejs-locals/ejs-locals.d.ts
vendored
Normal file
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user