teddit/node_modules/helmet/dist/middlewares/referrer-policy/index.d.ts
2020-11-17 21:44:32 +01:00

7 lines
310 B
TypeScript

import { IncomingMessage, ServerResponse } from "http";
export interface ReferrerPolicyOptions {
policy?: string | string[];
}
declare function referrerPolicy(options?: Readonly<ReferrerPolicyOptions>): (_req: IncomingMessage, res: ServerResponse, next: () => void) => void;
export default referrerPolicy;