MCPcopy Create free account
hub / github.com/CodeForBreakfast/eventsourcing / formatErrorLine

Function formatErrorLine

scripts/validate-markdown-examples.ts:449–452  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

447 );
448
449const formatErrorLine = (line: string): Effect.Effect<void, never, never> =>
450 !line.includes('example-') || line.includes('error TS')
451 ? Console.error(` ${line}`)
452 : Effect.void;
453
454const appendFormattedLine = (acc: Effect.Effect<void, never, never>, line: string) =>
455 Effect.andThen(acc, formatErrorLine(line));

Callers 1

appendFormattedLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected