Comparing version 3.0.7 to 3.0.8
{ | ||
"name": "daemonix", | ||
"description": "Daemonix is an awesome tool for managing NodeJS processes/clusters as a daemon in Linux/Unix environments.", | ||
"version": "3.0.7", | ||
"version": "3.0.8", | ||
"author": "Anthony Hildoer <anthony@bluerival.com>", | ||
@@ -6,0 +6,0 @@ "repository": { |
declare module 'daemonix' { | ||
// Defining interfaces | ||
interface App { | ||
new(env: string): App; | ||
export interface App { | ||
init(done: (err?: Error | null) => void): void; | ||
@@ -12,17 +10,20 @@ | ||
interface LogFn { | ||
// Here typeof AppInterface is used to represent a Class that implements the AppInterface | ||
export type AppClass = new (env: string) => App; | ||
export interface LogFn { | ||
(level: string, message: string, meta?: Record<string, unknown>): void; | ||
} | ||
interface WorkersOptions { | ||
count: number | 'auto'; | ||
restartTimeout: number; | ||
shutdownTimeout: number; | ||
exitOnException: boolean; | ||
export interface WorkersOptions { | ||
count?: number | 'auto'; | ||
restartTimeout?: number; | ||
shutdownTimeout?: number; | ||
exitOnException?: boolean; | ||
} | ||
interface DaemonixOptions { | ||
app: App; | ||
log: LogFn; | ||
workers: WorkersOptions; | ||
export interface DaemonixOptions { | ||
app: AppClass; // Now App represents a Class type | ||
log?: LogFn; | ||
workers?: WorkersOptions; | ||
} | ||
@@ -32,2 +33,2 @@ | ||
export default daemonix; | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26737
254