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

Method get

packages/core/src/scenes/Variables.ts:20–23  ·  view source on GitHub ↗

* Get variable signal if exists or create signal if not * * @param name - The name of the variable. * @param initial - The initial value of the variable. It will be used if the * variable was not configured from the outside.

(name: string, initial: T)

Source from the content-addressed store, hash-verified

18 * variable was not configured from the outside.
19 */
20 public get<T>(name: string, initial: T): () => T {
21 this.signals[name] ??= createSignal(this.variables[name] ?? initial);
22 return () => this.signals[name]();
23 }
24
25 /**
26 * Update all signals with new project variable values.

Callers 15

detectFileTypeMethod · 0.45
getIdMapFunction · 0.45
getTransformDiffFunction · 0.45
getFrameMethod · 0.45
dropExtractorFunction · 0.45
getFrameFunction · 0.45
resetMethod · 0.45
registerNodeMethod · 0.45
getNodeMethod · 0.45
constructorMethod · 0.45
tweenerMethod · 0.45
findUniqueFunction · 0.45

Calls 1

createSignalFunction · 0.90

Tested by

no test coverage detected