From e64c099532292bdeae92590dafc15fa5c6c1c753 Mon Sep 17 00:00:00 2001 From: Jason Tremper Date: Tue, 23 Dec 2014 15:29:23 -0500 Subject: [PATCH 1/2] Adding basic express-partials support --- express-partials/express-partials-tests.ts | 8 ++++++++ express-partials/express-partials.d.ts | 14 ++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 express-partials/express-partials-tests.ts create mode 100644 express-partials/express-partials.d.ts diff --git a/express-partials/express-partials-tests.ts b/express-partials/express-partials-tests.ts new file mode 100644 index 000000000..5ed5b8add --- /dev/null +++ b/express-partials/express-partials-tests.ts @@ -0,0 +1,8 @@ +/// +/// + +import express = require('express'); +import partials = require('express-partials'); + +var app: express.Express = express(); +app.use(partials()); \ No newline at end of file diff --git a/express-partials/express-partials.d.ts b/express-partials/express-partials.d.ts new file mode 100644 index 000000000..8a677961c --- /dev/null +++ b/express-partials/express-partials.d.ts @@ -0,0 +1,14 @@ +// Type definitions for express-partials +// Project: https://github.com/publicclass/express-partials +// Definitions by: jt000 +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// + +declare module "express-partials" { + import express = require('express'); + + function expressPartials(options?: any): express.RequestHandler; + + export = expressPartials; +} \ No newline at end of file From a1777be91294548376b4ff5059d88297800a8918 Mon Sep 17 00:00:00 2001 From: Jason Tremper Date: Tue, 23 Dec 2014 15:30:03 -0500 Subject: [PATCH 2/2] 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 000000000..079837a5f --- /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 000000000..96f6db7e5 --- /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