Skip to content

Commit 26c4187

Browse files
authored
refactor(process): trim internal type surface (#105599)
1 parent e0aba31 commit 26c4187

4 files changed

Lines changed: 2 additions & 5 deletions

File tree

src/process/spawn-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type SpawnFallback = {
99
options: SpawnOptions;
1010
};
1111

12-
export type SpawnWithFallbackResult = {
12+
type SpawnWithFallbackResult = {
1313
child: ChildProcess;
1414
usedFallback: boolean;
1515
fallbackLabel?: string;

src/process/supervisor/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,5 @@ export type {
2121
RunRecord,
2222
RunState,
2323
SpawnInput,
24-
SpawnMode,
2524
TerminationReason,
2625
} from "./types.js";

src/process/supervisor/registry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function resolveMaxExitedRecords(value?: number): number {
1515
return Math.max(1, Math.floor(value));
1616
}
1717

18-
export type RunRegistry = {
18+
type RunRegistry = {
1919
add: (record: RunRecord) => void;
2020
get: (runId: string) => RunRecord | undefined;
2121
updateState: (

src/process/supervisor/types.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ export type ManagedRun = {
4646
cancel: (reason?: TerminationReason) => void;
4747
};
4848

49-
export type SpawnMode = "child" | "pty";
50-
5149
export type ManagedRunStdin = {
5250
write: (data: string, cb?: (err?: Error | null) => void) => void;
5351
end: () => void;

0 commit comments

Comments
 (0)