Neurotic Pantaloon Maker

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

    1.1.1 • Public • Published

    Installation

    npm install --save @types/sticky-session

    Summary

    This package contains type definitions for sticky-session (https://github.com/indutny/sticky-session).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sticky-session.

    index.d.ts

    // Type definitions for sticky-session 1.1
    // Project: https://github.com/indutny/sticky-session
    // Definitions by: Giovanni Barbaro <https://github.com/vanny96>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    /// <reference types="node" />
    
    import { Server } from "http";
    
    /**
     * Method to create the sticky session
     * @param server Server used to create the session
     * @param port Port where the app will be listening at
     * @param options Options to customize the sticky session
     */
    export function listen(
        server: Server,
        port?: number,
        options?: {
            readonly workers?: number | undefined,
            readonly env?: any
        }
    ): boolean;

    Additional Details

    • Last updated: Fri, 02 Jul 2021 22:32:56 GMT
    • Dependencies: @types/node
    • Global values: none

    Credits

    These definitions were written by Giovanni Barbaro.

    Keywords

    none

    Install

    npm i @types/sticky-session

    DownloadsWeekly Downloads

    151

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    4.04 kB

    Total Files

    4

    Last publish

    Collaborators

    • types