From a1777be91294548376b4ff5059d88297800a8918 Mon Sep 17 00:00:00 2001 From: Jason Tremper Date: Tue, 23 Dec 2014 15:30:03 -0500 Subject: [PATCH] Adding basic ejs-locals support --- ejs-locals/ejs-locals-tests.ts | 8 ++++++++ ejs-locals/ejs-locals.d.ts | 11 +++++++++++ 2 files changed, 19 insertions(+) create mode 100644 ejs-locals/ejs-locals-tests.ts create mode 100644 ejs-locals/ejs-locals.d.ts diff --git a/ejs-locals/ejs-locals-tests.ts b/ejs-locals/ejs-locals-tests.ts new file mode 100644 index 0000000000..079837a5f7 --- /dev/null +++ b/ejs-locals/ejs-locals-tests.ts @@ -0,0 +1,8 @@ +/// +/// + +import express = require('express'); +import ejsLocals = require('ejs-locals'); + +var app: express.Express = express(); +app.engine('ejs', ejsLocals); \ No newline at end of file diff --git a/ejs-locals/ejs-locals.d.ts b/ejs-locals/ejs-locals.d.ts new file mode 100644 index 0000000000..96f6db7e57 --- /dev/null +++ b/ejs-locals/ejs-locals.d.ts @@ -0,0 +1,11 @@ +// Type definitions for ejs-locals +// Project: https://github.com/randometc/ejs-locals +// Definitions by: jt000 +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +declare module "ejs-locals" { + + function ejsLocals(): Function; + + export = ejsLocals; +} \ No newline at end of file