Files
DefinitelyTyped/types/hpp/hpp-tests.ts
Michael Strobel 8a6349f455 [hpp]: Add type definitions (#18619)
Add an optional extended description…
2017-08-04 16:53:42 -07:00

18 lines
289 B
TypeScript

import * as express from 'express';
import * as hpp from 'hpp';
const app = express();
app.use(hpp());
app.use(hpp({
checkBody: true,
checkBodyOnlyForContentType: 'urlencoded',
checkQuery: true,
whitelist: ['foo', 'bar']
}));
app.use(hpp({
whitelist: 'foobar'
}));