0.3.5 • Published 6 months ago
@types/sticky-cluster v0.3.5
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
// Type definitions for sticky-cluster 0.3
// Project: https://github.com/uqee/sticky-cluster
// Definitions by: Austin Turner <https://github.com/paustint>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <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: Fri, 02 Jul 2021 22:32:56 GMT
- Dependencies: @types/node
- Global values: none
Credits
These definitions were written by Austin Turner.