MCPcopy Create free account
hub / github.com/Noumena-Network/code / findClearTerminalPatch

Function findClearTerminalPatch

src/ink/logUpdateFlickerRegression.test.ts:176–183  ·  view source on GitHub ↗
(diff: Diff)

Source from the content-addressed store, hash-verified

174}
175
176function findClearTerminalPatch(diff: Diff) {
177 return diff.find(
178 (
179 patch,
180 ): patch is Extract<Diff[number], { type: 'clearTerminal' }> =>
181 patch.type === 'clearTerminal',
182 )
183}
184
185function serializeDiff(diff: Diff | { diff: Diff }, skipSyncMarkers = true): string {
186 const patches = Array.isArray(diff) ? diff : diff.diff

Callers 2

runTransitionFunction · 0.85
runTransitionWithLogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected