MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / createSuppressedWrite

Function createSuppressedWrite

src/utils/shutdown-state.ts:14–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12let originalStderrWrite: WritableMethod | null = null;
13
14function createSuppressedWrite(): WritableMethod {
15 return (_chunk: unknown, encoding?: unknown, callback?: unknown): boolean => {
16 const resolvedCallback =
17 typeof encoding === 'function' ? encoding : typeof callback === 'function' ? callback : null;
18
19 if (typeof resolvedCallback === 'function') {
20 queueMicrotask(() => resolvedCallback(null));
21 }
22
23 return true;
24 };
25}
26
27function setWrite(target: StdioWriteTarget | undefined, write: WritableMethod): void {
28 if (!target || typeof target.write !== 'function') {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected