alien-signals
Advanced tools
Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2
{ | ||
"name": "alien-signals", | ||
"version": "1.0.0-alpha.1", | ||
"version": "1.0.0-alpha.2", | ||
"sideEffects": false, | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -20,16 +20,20 @@ export interface Dependency { | ||
Tracking = 1, | ||
Recursed = 2, | ||
InnerEffectsPending = 4, | ||
ToCheckDirty = 8, | ||
Dirty = 16, | ||
Notified = 28 | ||
Notified = 2, | ||
Recursed = 4, | ||
PendingInnerEffects = 8, | ||
CheckRequired = 16, | ||
Dirty = 32, | ||
Propagated = 56 | ||
} | ||
export declare function createSystem<Computed extends Dependency & Subscriber, Effect extends Subscriber>({ isComputed, isEffect, updateComputed, notifyEffect, }: { | ||
isComputed(sub: Subscriber): sub is Computed; | ||
isEffect(sub: Subscriber): sub is Effect; | ||
updateComputed(sub: Computed): boolean; | ||
notifyEffect(sub: Effect): void; | ||
export declare function createSystem<Computed extends Dependency & Subscriber, Effect extends Subscriber>({ computed: { is: isComputed, update: updateComputed, }, effect: { is: isEffect, notify: notifyEffect, }, }: { | ||
computed: { | ||
is(sub: Dependency & Subscriber): sub is Computed; | ||
update(computed: Computed): boolean; | ||
}; | ||
effect: { | ||
is(sub: Subscriber): sub is Effect; | ||
notify(effect: Effect): boolean; | ||
}; | ||
}): { | ||
link: (dep: Dependency, sub: Subscriber) => boolean; | ||
shallowPropagate: (link: Link) => void; | ||
propagate: (link: Link) => void; | ||
@@ -39,4 +43,5 @@ startTrack: (sub: Subscriber) => void; | ||
isDirty: (sub: Subscriber, flags: SubscriberFlags) => boolean; | ||
drainQueuedEffects: () => void; | ||
runInnerEffects: (link: Link) => void; | ||
processComputedUpdate: (computed: Computed, flags: SubscriberFlags) => void; | ||
processInnerEffects: (effect: Effect, flags: SubscriberFlags) => boolean; | ||
processQueuedEffects: () => void; | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53158
1494