Skip to content

Commit

Permalink
fix & improve
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0a0d committed Sep 21, 2023
1 parent 68c4a3f commit 8de4abc
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { EventEmitter2 } from "eventemitter2";
import type { Worker } from "cluster";

declare namespace Moleculer {
/**
Expand Down Expand Up @@ -1835,22 +1836,49 @@ declare namespace Moleculer {
function parseByteString(value: string): number;
}

/**
* Parsed CLI flags
*/
interface RunnerFlags {

/**
* Path to load configuration from a file
*/
config?: string;

/**
* Start REPL mode
*/
repl?: boolean;

/**
* Enable hot reload mode
*/
hot?: boolean;

/**
* Silent mode. No logger
*/
silent?: boolean;

/**
* Load .env file from current directory
*/
env?: boolean;

/**
* Load .env files by glob pattern
*/
envfile?: string;

/**
* Number of node instances to start in cluster mode
*/
instances?: number;

/**
* File mask for loading services
*/
mask?: string;

}
Expand All @@ -1859,7 +1887,7 @@ declare namespace Moleculer {
* Moleculer Runner
*/
class Runner {
worker: NodeJS.ClusterWorker | null;
worker: Worker | null;
broker: ServiceBroker | null;

/**
Expand Down

0 comments on commit 8de4abc

Please sign in to comment.