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

Method createSignal

packages/2d/src/lib/components/Code.ts:146–155  ·  view source on GitHub ↗

* Create a standalone code signal. * * @param initial - The initial code. * @param highlighter - Custom highlighter to use.

(
    initial: PossibleCodeScope,
    highlighter?: SignalValue<CodeHighlighter>,
  )

Source from the content-addressed store, hash-verified

144 * @param highlighter - Custom highlighter to use.
145 */
146 public static createSignal(
147 initial: PossibleCodeScope,
148 highlighter?: SignalValue<CodeHighlighter>,
149 ): CodeSignal<void> {
150 return new CodeSignalContext<void>(
151 initial,
152 undefined,
153 highlighter,
154 ).toSignal();
155 }
156
157 public static defaultHighlighter: CodeHighlighter | null = null;
158 /**

Callers

nothing calls this directly

Calls 1

toSignalMethod · 0.45

Tested by

no test coverage detected