@types/hapi-server-session
TypeScript icon, indicating that this package has built-in type declarations

5.1.7 • Public • Published

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

Credits

These definitions were written by Avery Fay.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/hapi-server-session

Weekly Downloads

28

Version

5.1.7

License

MIT

Unpacked Size

4.12 kB

Total Files

5

Last publish

Collaborators

  • types