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
/// <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: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: @types/node
Credits
These definitions were written by Giovanni Barbaro.