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

Function codeSignal

packages/2d/src/lib/code/CodeSignal.ts:317–327  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

315}
316
317export function codeSignal(): PropertyDecorator {
318 return (target: any, key) => {
319 const meta = getPropertyMetaOrCreate<PossibleCodeScope>(target, key);
320 addInitializer(target, (instance: any) => {
321 instance[key] = new CodeSignalContext(
322 meta.default ?? [],
323 instance,
324 ).toSignal();
325 });
326 };
327}

Callers 1

CodeClass · 0.90

Calls 3

getPropertyMetaOrCreateFunction · 0.90
addInitializerFunction · 0.90
toSignalMethod · 0.45

Tested by

no test coverage detected