mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
10 lines
329 B
TypeScript
10 lines
329 B
TypeScript
import conditional = require('express-conditional-middleware');
|
|
import * as express from 'express';
|
|
|
|
const app: express.Application = <any> {};
|
|
const handler: express.RequestHandler = <any> {};
|
|
|
|
app.use(conditional(true, handler));
|
|
app.use(conditional(() => false, handler));
|
|
app.use(conditional(() => false, handler, handler));
|