npm.io
0.3.5 • Published 2 years ago

@types/sticky-cluster

Licence
MIT
Version
0.3.5
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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.