@types/express-cluster
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

Installation

npm install --save @types/express-cluster

Summary

This package contains type definitions for express-cluster (https://github.com/Flipboard/express-cluster).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-cluster.

index.d.ts

/// <reference types="node" />

import cluster = require("cluster");

interface Config {
    count?: number | undefined;
    respawn?: boolean | undefined;
    verbose?: boolean | undefined;
    workerListener?(): void;
    outputStream?: NodeJS.WritableStream | undefined;
}

type WorkerFunction = (worker: cluster.Worker) => void;

interface Cluster {
    (fn: WorkerFunction, config: Config): void;
    (config: Config, fn: WorkerFunction): void;
}

declare const c: Cluster;
export = c;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:36 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Miloslav Nenadál.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/express-cluster

Weekly Downloads

880

Version

0.0.4

License

MIT

Unpacked Size

3.66 kB

Total Files

5

Last publish

Collaborators

  • types