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

Function createSignal

packages/core/src/signals/createSignal.ts:7–17  ·  view source on GitHub ↗
(
  initial?: SignalValue<TValue>,
  interpolation: InterpolationFunction<TValue> = deepLerp,
  owner?: TOwner,
)

Source from the content-addressed store, hash-verified

5import type {SignalValue} from './types';
6
7export function createSignal<TValue, TOwner = void>(
8 initial?: SignalValue<TValue>,
9 interpolation: InterpolationFunction<TValue> = deepLerp,
10 owner?: TOwner,
11): SimpleSignal<TValue, TOwner> {
12 return new SignalContext<TValue, TValue, TOwner>(
13 initial,
14 interpolation,
15 owner,
16 ).toSignal();
17}

Callers 15

CodeBlockClass · 0.90
CodeClass · 0.90
LineClass · 0.90
Shape.tsFile · 0.90
NodeClass · 0.90
PathClass · 0.90
state.test.tsxFile · 0.90
children.test.tsxFile · 0.90
clone.test.tsxFile · 0.90
constructorMethod · 0.90
CodeSignalContextClass · 0.90
replaceTweenMethod · 0.90

Calls 1

toSignalMethod · 0.45

Tested by

no test coverage detected