teddit/node_modules/helmet/dist/middlewares/strict-transport-security/index.d.ts

9 lines
391 B
TypeScript
Raw Normal View History

2020-11-17 21:44:32 +01:00
import { IncomingMessage, ServerResponse } from "http";
export interface StrictTransportSecurityOptions {
maxAge?: number;
includeSubDomains?: boolean;
preload?: boolean;
}
declare function strictTransportSecurity(options?: Readonly<StrictTransportSecurityOptions>): (_req: IncomingMessage, res: ServerResponse, next: () => void) => void;
export default strictTransportSecurity;