MCPcopy
hub / github.com/midrender/revideo / isCodeModification

Function isCodeModification

packages/2d/src/lib/components/CodeBlock.ts:471–478  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

469}
470
471function isCodeModification(value: any): value is CodeModification {
472 return (
473 value &&
474 typeof value === 'object' &&
475 value.from !== undefined &&
476 value.to !== undefined
477 );
478}
479
480/**
481 * Create a code modification that inserts a piece of code.

Callers 1

generatorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected