Installation
npm install --save @types/hapi-server-session
Summary
This package contains type definitions for hapi-server-session (https://github.com/btmorex/hapi-server-session).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hapi-server-session.
index.d.ts
/// <reference types="node" />
import { CachePolicyOptions, Plugin, ServerStateCookieOptions } from "@hapi/hapi";
import { BinaryLike } from "crypto";
declare module "@hapi/hapi" {
interface Request {
session: any;
}
}
export interface Options {
algorithm?: string | undefined;
cache?: CachePolicyOptions<any> | undefined;
cookie?: ServerStateCookieOptions | undefined;
expiresIn?: number | undefined;
key?: BinaryLike | undefined;
name?: string | undefined;
size?: number | undefined;
vhost?: string | string[] | undefined;
}
export const plugin: Plugin<Options>;
export default plugin;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @hapi/hapi, @types/node, joi
Credits
These definitions were written by Avery Fay.