5.1.7 • Published 6 months ago
@types/hapi-server-session v5.1.7
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
// Type definitions for hapi-server-session 5.1
// Project: https://github.com/btmorex/hapi-server-session
// Definitions by: Avery Fay <https://github.com/btmorex>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { BinaryLike } from 'crypto';
import { CachePolicyOptions, Plugin, ServerStateCookieOptions } from '@hapi/hapi';
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: Thu, 08 Jul 2021 14:22:41 GMT
- Dependencies: @types/hapi__hapi
- Global values: none
Credits
These definitions were written by Avery Fay.