Creates a computed Alien Signal based on a getter function.
The type of the computed value.
A getter function returning a computed value.
The created computed signal.
const countSignal = createSignal(1);const doubleSignal = createComputed(() => countSignal.get() * 2); Copy
const countSignal = createSignal(1);const doubleSignal = createComputed(() => countSignal.get() * 2);
Creates a computed Alien Signal based on a getter function.