Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

terminalActivity.ts

14 lines354 Bytes

1import type { TerminalEvent } from "@t3tools/contracts";
2​
3export function terminalRunningSubprocessFromEvent(event: TerminalEvent): boolean | null {
4 switch (event.type) {
5 case "activity":
6 return event.hasRunningSubprocess;
7 case "started":
8 case "restarted":
9 case "exited":
10 return false;
11 default:
12 return null;
13 }