- added an inode display to the `printTree` algorithm - removed a redundant type in *`signal.ts`* - improved `resolveInode` to now take `ShellState` instead of `FileSystem` and added an optional `abs` *`boolean`* argument to determine if the retuned path should be normalized or absolute - implemented a builtin `TreeNode` quicksort function - changed the `TreeNodeType` to a numeric enum - added a standalone `Posix` class that holds a const with character weights compliant with posix
14 lines
295 B
TypeScript
14 lines
295 B
TypeScript
//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,
|
|
}
|