|
|
|
@ -87,11 +87,7 @@ export type Computation<V = unknown> = {
|
|
|
|
|
/** The types that the signal represent, as a bitwise value */
|
|
|
|
|
f: SignalFlags;
|
|
|
|
|
/** init: The function that we invoke for effects and computeds */
|
|
|
|
|
i:
|
|
|
|
|
| null
|
|
|
|
|
| (() => V)
|
|
|
|
|
| (() => void | (() => void))
|
|
|
|
|
| ((b: Block, s: Signal) => void | (() => void));
|
|
|
|
|
i: null | (() => V) | (() => void | (() => void)) | ((b: null, s: Signal) => void | (() => void));
|
|
|
|
|
/** references: Anything that a signal owns */
|
|
|
|
|
r: null | Computation[];
|
|
|
|
|
/** value: The latest value for this signal, doubles as the teardown for effects */
|
|
|
|
@ -157,8 +153,6 @@ export type EachItemBlock = {
|
|
|
|
|
k: unknown;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type Block = EachItemBlock;
|
|
|
|
|
|
|
|
|
|
export type TransitionFn<P> = (
|
|
|
|
|
element: Element,
|
|
|
|
|
props: P,
|
|
|
|
|