Installation
npm install --save @types/sticky-cluster
Summary
This package contains type definitions for sticky-cluster (https://github.com/uqee/sticky-cluster).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sticky-cluster.
index.d.ts
/// <reference types="node"/>
import * as http from "http";
declare namespace stickyCluster {
type InitializeFn = (callback: Callback) => void;
type Callback = (server: http.Server) => void;
interface Options {
concurrency?: number | undefined;
port?: number | undefined;
debug?: boolean | undefined;
prefix?: string | undefined;
env?: ((index: number) => { stickycluster_worker_index: number }) | undefined;
hardShutdownDelay?: number | undefined;
errorHandler?: ((err: any) => void) | undefined;
}
}
declare function stickyCluster(callback: stickyCluster.InitializeFn, options?: stickyCluster.Options): void;
export = stickyCluster;
Additional Details
- Last updated: Tue, 07 Nov 2023 1536 GMT
- Dependencies: @types/node
Credits
These definitions were written by Austin Turner.