0.3.5 • Published 6 months ago

@types/sticky-cluster v0.3.5

Weekly downloads
197
License
MIT
Repository
github
Last release
6 months ago

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.

0.3.5

6 months ago

0.3.4

7 months ago

0.3.3

8 months ago

0.3.2

3 years ago

0.3.1

5 years ago

0.3.0

6 years ago