|
|
|
@ -12,8 +12,8 @@ export type EffectType = typeof EFFECT | typeof PRE_EFFECT | typeof RENDER_EFFEC
|
|
|
|
export interface Source<V = unknown> {
|
|
|
|
export interface Source<V = unknown> {
|
|
|
|
/** Signals that read from this signal */
|
|
|
|
/** Signals that read from this signal */
|
|
|
|
reactions: null | Reaction[];
|
|
|
|
reactions: null | Reaction[];
|
|
|
|
/** equals: For value equality */
|
|
|
|
/** Equality function */
|
|
|
|
e: null | EqualsFunctions;
|
|
|
|
eq: EqualsFunctions;
|
|
|
|
/** flags: The types that the signal represent, as a bitwise value */
|
|
|
|
/** flags: The types that the signal represent, as a bitwise value */
|
|
|
|
f: SignalFlags;
|
|
|
|
f: SignalFlags;
|
|
|
|
/** value: The latest value for this signal */
|
|
|
|
/** value: The latest value for this signal */
|
|
|
|
@ -55,8 +55,6 @@ export type Effect = {
|
|
|
|
d: null | Value[];
|
|
|
|
d: null | Value[];
|
|
|
|
/** destroy: Thing(s) that need destroying */
|
|
|
|
/** destroy: Thing(s) that need destroying */
|
|
|
|
y: null | (() => void);
|
|
|
|
y: null | (() => void);
|
|
|
|
/** equals: For value equality */
|
|
|
|
|
|
|
|
e: null | EqualsFunctions;
|
|
|
|
|
|
|
|
/** The types that the signal represent, as a bitwise value */
|
|
|
|
/** The types that the signal represent, as a bitwise value */
|
|
|
|
f: SignalFlags;
|
|
|
|
f: SignalFlags;
|
|
|
|
/** init: The function that we invoke for effects and computeds */
|
|
|
|
/** init: The function that we invoke for effects and computeds */
|
|
|
|
|