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

20 lines
532 B
TypeScript

// Type definitions for hpp 0.2
// Project: https://github.com/analog-nico/hpp
// Definitions by: Michael Strobel <https://github.com/kryops>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as express from 'express';
declare namespace hpp {
interface Options {
checkBody?: boolean;
checkBodyOnlyForContentType?: string;
checkQuery?: boolean;
whitelist?: string | string[];
}
}
declare function hpp(options?: hpp.Options): express.RequestHandler;
export = hpp;