alien-signals
Advanced tools
Comparing version 1.1.0-alpha.2 to 1.1.0-alpha.3
{ | ||
"name": "alien-signals", | ||
"version": "1.1.0-alpha.2", | ||
"version": "1.1.0-alpha.3", | ||
"sideEffects": false, | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -1,2 +0,1 @@ | ||
export * as pullmodel from './pullmodel/index.js'; | ||
export * from './system.js'; | ||
@@ -3,0 +2,0 @@ interface WriteableSignal<T> { |
@@ -12,3 +12,3 @@ export interface Dependency { | ||
export interface Link { | ||
version?: number; | ||
version: number | undefined; | ||
dep: Dependency | (Dependency & Subscriber); | ||
@@ -21,2 +21,3 @@ sub: Subscriber | (Dependency & Subscriber); | ||
export declare const enum SubscriberFlags { | ||
None = 0, | ||
Computed = 1, | ||
@@ -30,5 +31,6 @@ Effect = 2, | ||
PendingEffect = 128, | ||
Cold = 256, | ||
Propagated = 224 | ||
} | ||
export declare function createReactiveSystem({ updateComputed, notifyEffect, checkDirty, }: { | ||
export declare function createReactiveSystem({ updateComputed, notifyEffect, }: { | ||
/** | ||
@@ -57,3 +59,2 @@ * Updates the computed subscriber's value and returns whether it changed. | ||
notifyEffect(effect: Subscriber): boolean; | ||
checkDirty?(link: Link): boolean; | ||
}): { | ||
@@ -138,5 +139,2 @@ /** | ||
processEffectNotifications(): void; | ||
checkDirty: (link: Link) => boolean; | ||
shallowPropagate: (link: Link) => void; | ||
isValidLink: (checkLink: Link, sub: Subscriber) => boolean; | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
58806
1545