UNPKG

rawx

Version:

process daemon with utilities

22 lines (21 loc) 747 B
/// <reference types="node" /> import { ChildProcess } from "child_process"; import { O, str } from "../ops/index"; import { P, _P } from "./proc_type_defs"; export declare type Proc_Util_C = new (args: { inherit_ops: O; }) => Proc_Util_I; export interface Proc_Util_I { is_fn_proc: (proc: P.A_Proc_Arg | _P._Proc) => boolean; is_repeater_proc: (proc: _P._Proc_W_Conf) => boolean; setup_subproc: (a: Setup_Proc_Util_Args) => void; basic_proc_stdio: Basic_Proc_Stdio; } interface Setup_Proc_Util_Args { sub_proc: ChildProcess; label: str; silence?: P.Silencer; on_close: (pid: number) => void; } declare type Basic_Proc_Stdio = (proc: ChildProcess, silence?: P.Silencer) => void; export {};