//Payload optional because command that handles that signal // is going to know what shape it is, therefore also able to cast it; export type Signal = { type: SIGNAL_MAP; payload?: unknown; }; export enum SIGNAL_MAP { SIGINT = 2, SIGTERM = 3, SIGKILL = 9, INPUT = 10, }