MCPcopy Index your code
hub / github.com/midrender/revideo / isCodeScope

Function isCodeScope

packages/2d/src/lib/code/CodeScope.ts:35–37  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

33}
34
35export function isCodeScope(value: any): value is CodeScope {
36 return value?.fragments !== undefined;
37}
38
39export function parseCodeScope(value: PossibleCodeScope): CodeScope {
40 if (typeof value === 'string') {

Callers 3

measureSizeMethod · 0.90
drawScopeMethod · 0.90
resolveCodeTagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected