0.0.4 • Published 6 months ago

@types/express-cluster v0.0.4

Weekly downloads
2,077
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for express-cluster 0.0
// Project: https://github.com/Flipboard/express-cluster
// Definitions by: Miloslav Nenadál <https://github.com/nenadalm>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <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: Thu, 08 Jul 2021 12:01:17 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by Miloslav Nenadál.

0.0.3

7 months ago

0.0.2

8 months ago

0.0.4

6 months ago

0.0.1

3 years ago

0.0.0

6 years ago