@raphy-js/raph 1.0.1-dev.25 → 1.0.1-dev.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +100 -0
- package/dist/api/Raph.d.ts +15 -15
- package/dist/api/RaphFacadeSession.d.ts +4 -4
- package/dist/api/RaphReactivityInstance.d.ts +4 -4
- package/dist/api/types.d.ts +11 -11
- package/dist/compact.cjs +1 -0
- package/dist/compact.js +4 -0
- package/dist/debug/reactivity/engine-core.cjs +1 -0
- package/dist/debug/reactivity/engine-core.js +1760 -0
- package/dist/debug/reactivity/engine.cjs +1 -1
- package/dist/debug/reactivity/engine.js +25 -1689
- package/dist/debug/reactivity/reactive-object.cjs +1 -1
- package/dist/debug/reactivity/reactive-object.js +604 -167
- package/dist/debug/runtime/RaphCompactExecutionRuntime.cjs +1 -0
- package/dist/debug/runtime/RaphCompactExecutionRuntime.js +9 -0
- package/dist/debug/runtime/RaphExecutionRuntime.cjs +1 -0
- package/dist/debug/runtime/RaphExecutionRuntime.js +11 -0
- package/dist/debug/runtime/RaphRuntime.cjs +1 -1
- package/dist/debug/runtime/RaphRuntime.js +115 -1176
- package/dist/debug/runtime/RaphRuntimeBase.cjs +1 -0
- package/dist/debug/runtime/RaphRuntimeBase.js +941 -0
- package/dist/debug/runtime/diagnostics/RaphDebug.cjs +1 -1
- package/dist/debug/runtime/diagnostics/RaphDebug.js +72 -66
- package/dist/debug/runtime/ownership/RaphNode.cjs +1 -1
- package/dist/debug/runtime/ownership/RaphNode.js +11 -0
- package/dist/debug/runtime/ownership/RaphScope.cjs +1 -1
- package/dist/debug/runtime/ownership/RaphScope.js +12 -12
- package/dist/debug/runtime/phases/RaphPhasePipeline.cjs +1 -1
- package/dist/debug/runtime/phases/RaphPhasePipeline.js +361 -242
- package/dist/debug/runtime/phases/RaphPhaseTaskRecord.cjs +1 -1
- package/dist/debug/runtime/phases/RaphPhaseTaskRecord.js +23 -22
- package/dist/debug/runtime/reactivity/RaphSelector.cjs +1 -1
- package/dist/debug/runtime/reactivity/RaphSelector.js +111 -90
- package/dist/debug/runtime/reactivity/RuntimeObjectSupport.cjs +1 -0
- package/dist/debug/runtime/reactivity/RuntimeObjectSupport.js +11 -0
- package/dist/debug/runtime/reactivity/RuntimeReactivity.cjs +1 -1
- package/dist/debug/runtime/reactivity/RuntimeReactivity.js +118 -103
- package/dist/debug/runtime/reactivity/RuntimeSelectorSupport.cjs +1 -0
- package/dist/debug/runtime/reactivity/RuntimeSelectorSupport.js +12 -0
- package/dist/entrypoints/compact.d.ts +2 -0
- package/dist/entrypoints/execution.d.ts +2 -0
- package/dist/entrypoints/machine-testing.d.ts +2 -2
- package/dist/entrypoints/machine.d.ts +5 -5
- package/dist/entrypoints/observable.d.ts +4 -0
- package/dist/entrypoints/path.d.ts +14 -14
- package/dist/entrypoints/reactivity.d.ts +1 -1
- package/dist/entrypoints/runtime.d.ts +19 -18
- package/dist/execution.cjs +1 -0
- package/dist/execution.js +4 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +23 -21
- package/dist/machine/compiler.d.ts +1 -1
- package/dist/machine/core.d.ts +2 -2
- package/dist/machine/persistence.d.ts +1 -1
- package/dist/machine/runtime.d.ts +3 -3
- package/dist/machine/testing.d.ts +1 -1
- package/dist/machine/types.d.ts +3 -3
- package/dist/main.d.ts +19 -19
- package/dist/observable/buffer.d.ts +6 -0
- package/dist/observable/class-admin.d.ts +63 -0
- package/dist/observable/class-plan.d.ts +46 -0
- package/dist/observable/classes.d.ts +10 -0
- package/dist/observable/context.d.ts +73 -0
- package/dist/observable/native.d.ts +2 -0
- package/dist/observable/observable.d.ts +13 -0
- package/dist/observable/types.d.ts +60 -0
- package/dist/observable.cjs +1 -0
- package/dist/observable.js +1187 -0
- package/dist/path/DataPath.d.ts +2 -2
- package/dist/path/PathRouter.d.ts +1 -1
- package/dist/path/RaphKernel.d.ts +6 -6
- package/dist/path/data-path.types.d.ts +1 -1
- package/dist/path/data-path.utils.d.ts +2 -2
- package/dist/path/derived/DerivedRegistry.d.ts +3 -3
- package/dist/path/derived/RaphDerivedHandle.d.ts +3 -3
- package/dist/path/derived/derived-collection.types.d.ts +1 -1
- package/dist/path/derived/derived-collection.utils.d.ts +3 -3
- package/dist/path/derived/derived-strategy.utils.d.ts +1 -1
- package/dist/path/meta/MetaController.d.ts +5 -5
- package/dist/path/meta/RaphMeta.d.ts +3 -3
- package/dist/path/meta/RaphMetaStore.d.ts +1 -1
- package/dist/path/meta/meta.types.d.ts +2 -2
- package/dist/path/path.types.d.ts +2 -2
- package/dist/path/pathSegmentKey.d.ts +1 -1
- package/dist/path/storage/AdapterPathStore.d.ts +2 -2
- package/dist/path/storage/DefaultDataAdapter.d.ts +2 -2
- package/dist/path/storage/PathEventHub.d.ts +1 -1
- package/dist/path/storage/PathStore.d.ts +2 -2
- package/dist/path/storage/data-adapter.types.d.ts +1 -1
- package/dist/raph.cjs +1 -1
- package/dist/raph.js +23 -21
- package/dist/reactivity/engine-core.d.ts +600 -0
- package/dist/reactivity/engine.d.ts +6 -550
- package/dist/reactivity/reactive-object.d.ts +143 -2
- package/dist/reactivity/scope.d.ts +7 -6
- package/dist/reactivity/types.d.ts +9 -12
- package/dist/reactivity/watch.d.ts +1 -1
- package/dist/runtime/RaphCompactExecutionRuntime.d.ts +7 -0
- package/dist/runtime/RaphExecutionRuntime.d.ts +6 -0
- package/dist/runtime/RaphRuntime.d.ts +19 -403
- package/dist/runtime/RaphRuntimeBase.d.ts +194 -0
- package/dist/runtime/diagnostics/RaphDebug.d.ts +8 -5
- package/dist/runtime/errors.d.ts +1 -1
- package/dist/runtime/ownership/RaphEffectScope.d.ts +13 -12
- package/dist/runtime/ownership/RaphNode.d.ts +28 -21
- package/dist/runtime/ownership/RaphScope.d.ts +32 -19
- package/dist/runtime/ownership/parent-graph.types.d.ts +1 -1
- package/dist/runtime/ownership/parentGraph.d.ts +2 -2
- package/dist/runtime/phases/RaphFrameLoop.d.ts +1 -1
- package/dist/runtime/phases/RaphPhasePipeline.d.ts +80 -29
- package/dist/runtime/phases/RaphPhaseTaskRecord.d.ts +21 -21
- package/dist/runtime/phases/RaphPhaseWatch.d.ts +3 -3
- package/dist/runtime/phases/orderPhaseTasks.d.ts +4 -2
- package/dist/runtime/phases/phase.types.d.ts +36 -35
- package/dist/runtime/reactivity/PathHandle.d.ts +5 -5
- package/dist/runtime/reactivity/RaphMetaSource.d.ts +7 -7
- package/dist/runtime/reactivity/RaphSelector.d.ts +27 -6
- package/dist/runtime/reactivity/RaphWorkGraph.d.ts +40 -39
- package/dist/runtime/reactivity/RuntimeObjectSupport.d.ts +9 -0
- package/dist/runtime/reactivity/RuntimeReactivity.d.ts +27 -19
- package/dist/runtime/reactivity/RuntimeSelectorSupport.d.ts +10 -0
- package/dist/runtime/reactivity/RuntimeWatch.d.ts +1 -1
- package/dist/runtime/reactivity/disposal-sweep.utils.d.ts +1 -1
- package/dist/runtime/reactivity/runtime-reactivity.types.d.ts +3 -3
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.js +13 -11
- package/package.json +22 -62
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { OwnedSourceHooks } from './types.js';
|
|
1
2
|
/**
|
|
2
3
|
* Opaque per-property producer used by the reactive-object adapter.
|
|
3
4
|
* The concrete record belongs to RaphReactivity's existing intrusive graph.
|
|
@@ -11,19 +12,74 @@ export type ReactivePropertySource = object;
|
|
|
11
12
|
*/
|
|
12
13
|
export interface ReactivePropertySourceBridge {
|
|
13
14
|
readonly batch: <T>(operation: () => T) => T;
|
|
14
|
-
readonly
|
|
15
|
+
readonly startBatch: () => void;
|
|
16
|
+
readonly endBatch: () => void;
|
|
17
|
+
readonly create: (hooks?: OwnedSourceHooks) => ReactivePropertySource;
|
|
18
|
+
readonly createTransient: (onUnobserved: () => void) => ReactivePropertySource;
|
|
15
19
|
readonly isTracking: () => boolean;
|
|
16
20
|
readonly track: (source: ReactivePropertySource) => void;
|
|
17
21
|
readonly trigger: (source: ReactivePropertySource) => void;
|
|
22
|
+
readonly hasMultipleSubscribers: (source: ReactivePropertySource) => boolean;
|
|
23
|
+
readonly release: (source: ReactivePropertySource) => void;
|
|
24
|
+
}
|
|
25
|
+
export interface ReactiveObjectExtension {
|
|
26
|
+
readValue: (value: unknown, deep: boolean) => unknown;
|
|
27
|
+
}
|
|
28
|
+
export interface ReactiveObjectSupport {
|
|
29
|
+
readonly bridge: ReactivePropertySourceBridge;
|
|
30
|
+
readonly policy: ReactiveObjectPolicy;
|
|
31
|
+
wrap: (raw: object, extension: ReactiveObjectExtension, deep: boolean) => object;
|
|
32
|
+
claim: (raw: object) => void;
|
|
33
|
+
unwrap: (value: unknown) => unknown;
|
|
34
|
+
identity: (raw: object) => ReactiveObjectIdentity;
|
|
35
|
+
hasView: (raw: object) => boolean;
|
|
36
|
+
/** Plain view слоя observable для raw этого context. */
|
|
37
|
+
observedView: (raw: object) => {
|
|
38
|
+
readonly view: object;
|
|
39
|
+
readonly deep: boolean;
|
|
40
|
+
} | undefined;
|
|
41
|
+
setObservedView: (raw: object, view: object, deep: boolean) => void;
|
|
42
|
+
write: <T>(operation: () => T) => T;
|
|
43
|
+
/**
|
|
44
|
+
* Closure-free форма write(): WRITE_NESTED — выполнить операцию сразу,
|
|
45
|
+
* WRITE_CALLBACK — передать её в write(), WRITE_OPENED — выполнить и затем
|
|
46
|
+
* вызвать closeWrite() либо throw failWrite(error).
|
|
47
|
+
*/
|
|
48
|
+
openWrite: () => WriteMode;
|
|
49
|
+
closeWrite: () => void;
|
|
50
|
+
failWrite: (error: unknown) => unknown;
|
|
51
|
+
/** Validates write permissions; true lets a caller reuse an already open batch. */
|
|
52
|
+
tryDirectWrite: () => boolean;
|
|
18
53
|
}
|
|
19
54
|
/** Runtime policy installed for one RuntimeReactivity instance. @internal */
|
|
20
55
|
export interface ReactiveObjectPolicy {
|
|
21
56
|
readonly owner?: object;
|
|
22
|
-
readonly assertRead?: () => void;
|
|
57
|
+
readonly assertRead?: (() => void) | undefined;
|
|
23
58
|
readonly assertWrite?: () => void;
|
|
24
59
|
readonly runWrite?: <T>(operation: () => T) => T;
|
|
60
|
+
readonly writeBoundary?: {
|
|
61
|
+
_isWriteBatchOpen: () => boolean;
|
|
62
|
+
_enterWrite: () => void;
|
|
63
|
+
_exitWrite: () => void;
|
|
64
|
+
_failWrite: (error: unknown) => unknown;
|
|
65
|
+
};
|
|
25
66
|
readonly throwForeign?: (owner: object | undefined) => never;
|
|
26
67
|
}
|
|
68
|
+
interface ExtendedObjectHandler {
|
|
69
|
+
extension: ReactiveObjectExtension | undefined;
|
|
70
|
+
readonly deep: boolean;
|
|
71
|
+
readonly handler: ProxyHandler<object>;
|
|
72
|
+
}
|
|
73
|
+
interface ReactiveObjectIdentity {
|
|
74
|
+
readonly context: ReactiveObjectContext;
|
|
75
|
+
readonly raw: object;
|
|
76
|
+
}
|
|
77
|
+
export declare const REACTIVE_OBJECT_IDENTITY: unique symbol;
|
|
78
|
+
/** Результат ReactiveObjectSupport.openWrite(). @internal */
|
|
79
|
+
export type WriteMode = 0 | 1 | 2;
|
|
80
|
+
export declare const WRITE_NESTED = 0;
|
|
81
|
+
export declare const WRITE_OPENED = 1;
|
|
82
|
+
export declare const WRITE_CALLBACK = 2;
|
|
27
83
|
/** Associates Runtime lifecycle policy with an engine without widening its public class API. @internal */
|
|
28
84
|
export declare function configureReactiveObjectPolicy(engine: object, policy: ReactiveObjectPolicy): void;
|
|
29
85
|
/** Releases a Runtime-owned context while retained proxies become inert handles. @internal */
|
|
@@ -34,3 +90,88 @@ export declare function disposeReactiveObjectContext(engine: object, disposedPol
|
|
|
34
90
|
* @internal
|
|
35
91
|
*/
|
|
36
92
|
export declare function reactiveObject<T extends object>(engine: object, value: T, createBridge: () => ReactivePropertySourceBridge): T;
|
|
93
|
+
declare class ReactiveObjectContext {
|
|
94
|
+
private _admins;
|
|
95
|
+
private _arrayMethods;
|
|
96
|
+
private _bridge;
|
|
97
|
+
private _policy;
|
|
98
|
+
private _writeDepth;
|
|
99
|
+
private _openBridge;
|
|
100
|
+
private _openBoundary;
|
|
101
|
+
private _disposed;
|
|
102
|
+
private _extendedHandlers;
|
|
103
|
+
private _mutatorProxy;
|
|
104
|
+
private _mutatorTarget;
|
|
105
|
+
private _lockedTargets;
|
|
106
|
+
private readonly _handler;
|
|
107
|
+
private readonly _weakSelf;
|
|
108
|
+
constructor(bridge: ReactivePropertySourceBridge, policy: ReactiveObjectPolicy);
|
|
109
|
+
get owner(): object | undefined;
|
|
110
|
+
_setPolicy(policy: ReactiveObjectPolicy): void;
|
|
111
|
+
get disposed(): boolean;
|
|
112
|
+
support(): ReactiveObjectSupport;
|
|
113
|
+
claim(raw: object): void;
|
|
114
|
+
/** Запись raw, принадлежащая этому context, либо undefined. */
|
|
115
|
+
private _ownAdmin;
|
|
116
|
+
/**
|
|
117
|
+
* Запись raw этого context. Запись освобождённого или собранного владельца
|
|
118
|
+
* заменяется новой; живой чужой владелец отклоняет raw.
|
|
119
|
+
*/
|
|
120
|
+
private _claimAdmin;
|
|
121
|
+
wrap(raw: object, extended?: ExtendedObjectHandler): object;
|
|
122
|
+
dispose(disposedPolicy: ReactiveObjectPolicy): void;
|
|
123
|
+
private _extensionHandler;
|
|
124
|
+
private _get;
|
|
125
|
+
private _set;
|
|
126
|
+
private _applySet;
|
|
127
|
+
private _define;
|
|
128
|
+
private _applyDefine;
|
|
129
|
+
private _delete;
|
|
130
|
+
private _applyDelete;
|
|
131
|
+
private _has;
|
|
132
|
+
private _ownKeys;
|
|
133
|
+
private _arrayMutator;
|
|
134
|
+
/**
|
|
135
|
+
* Raw массива для специализированного мутатора: только сразу после чтения
|
|
136
|
+
* метода через этот Proxy, вне отслеживания и для обычного Array.prototype.
|
|
137
|
+
* Иначе мутатор идёт прежним путём через ловушки Proxy.
|
|
138
|
+
*
|
|
139
|
+
* @internal
|
|
140
|
+
*/
|
|
141
|
+
_fastArrayTarget(receiver: unknown): unknown[] | undefined;
|
|
142
|
+
/**
|
|
143
|
+
* Выполняет специализированный мутатор в границе записи без closure.
|
|
144
|
+
*
|
|
145
|
+
* @internal
|
|
146
|
+
*/
|
|
147
|
+
_arrayWrite(operation: number, raw: unknown[], first: unknown, second: unknown, third: unknown, count: number): unknown;
|
|
148
|
+
private _arrayOperation;
|
|
149
|
+
private _splice;
|
|
150
|
+
private _moveArrayEntry;
|
|
151
|
+
private _setArrayEntry;
|
|
152
|
+
private _deleteArrayEntry;
|
|
153
|
+
private _viewOf;
|
|
154
|
+
private _trackValue;
|
|
155
|
+
private _trackHas;
|
|
156
|
+
private _trackIterate;
|
|
157
|
+
private _ensureTracking;
|
|
158
|
+
private _trigger;
|
|
159
|
+
private _triggerArrayShape;
|
|
160
|
+
private _write;
|
|
161
|
+
/**
|
|
162
|
+
* Проверяет право записи и открывает внешнюю границу без closure операции.
|
|
163
|
+
* WRITE_OPENED обязывает вызывающего завершить её через _closeWrite() или
|
|
164
|
+
* _failOpenWrite(). Пока граница открыта, _writeDepth не равен нулю, поэтому
|
|
165
|
+
* вложенная запись получает WRITE_NESTED и сохранённые поля не перезаписывает.
|
|
166
|
+
*/
|
|
167
|
+
private _openWrite;
|
|
168
|
+
private _closeWrite;
|
|
169
|
+
/** Закрывает открытую границу после сбоя операции и возвращает ошибку для throw. */
|
|
170
|
+
private _failOpenWrite;
|
|
171
|
+
private _writeThroughPolicy;
|
|
172
|
+
private _unwrap;
|
|
173
|
+
private _requireBridge;
|
|
174
|
+
}
|
|
175
|
+
export declare function getReactiveObjectSupport(engine: object): ReactiveObjectSupport;
|
|
176
|
+
export declare function isPlainReactiveValue(value: unknown): value is object;
|
|
177
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { DisposalFailure } from './disposal';
|
|
2
|
-
import { RaphReactivity } from './engine';
|
|
3
|
-
import {
|
|
1
|
+
import { DisposalFailure } from './disposal.js';
|
|
2
|
+
import { RaphReactivity } from './engine.js';
|
|
3
|
+
import { ReactivityEngine } from './engine-core.js';
|
|
4
|
+
import { Disposer, EffectCallback, OwnedResource, OwnedSource, ReadonlySignal, ScopeChildren, ScopeLink, Signal, SourceFinalizer, WatchCallback, WatchOptions, WatchSource, WritableComputedOptions } from './types.js';
|
|
4
5
|
/**
|
|
5
6
|
* Запись источника в списке владельца: сама хранит связь с соседом и сама
|
|
6
7
|
* освобождает источник, поэтому владельцу не нужна отдельная коллекция.
|
|
@@ -117,16 +118,16 @@ export declare abstract class ScopeOwner implements ScopeChildren<OwnedResource>
|
|
|
117
118
|
* Проверки lifetime выполняют только owned handles; свободные signal() не проходят
|
|
118
119
|
* через владельца. Класс не является узлом графа зависимостей.
|
|
119
120
|
*/
|
|
120
|
-
export declare class ScopeNode extends ScopeOwner {
|
|
121
|
+
export declare class ScopeNode<Engine extends ReactivityEngine = RaphReactivity> extends ScopeOwner {
|
|
121
122
|
/**
|
|
122
123
|
* Экземпляр, в котором создаются owned-ресурсы.
|
|
123
124
|
*/
|
|
124
|
-
readonly reactivity:
|
|
125
|
+
readonly reactivity: Engine;
|
|
125
126
|
/**
|
|
126
127
|
* Связывает владельца с реактивным экземпляром без создания нового графа.
|
|
127
128
|
* @param reactivity Экземпляр, в котором создаются owned-ресурсы.
|
|
128
129
|
*/
|
|
129
|
-
constructor(reactivity:
|
|
130
|
+
constructor(reactivity: Engine);
|
|
130
131
|
/**
|
|
131
132
|
* Создаёт owned signal и регистрирует его финализатор.
|
|
132
133
|
* Все методы возвращённого handle проверяют, что владелец ещё активен.
|
|
@@ -96,11 +96,7 @@ export interface ReactiveNode<T = any> extends ScopeChildren<ReactiveNode>, Scop
|
|
|
96
96
|
lastSub: ReactiveEdge | null;
|
|
97
97
|
firstDep: ReactiveEdge | null;
|
|
98
98
|
tailDep: ReactiveEdge | null;
|
|
99
|
-
depCount: number;
|
|
100
99
|
subSearchCursor?: ReactiveEdge;
|
|
101
|
-
dependencyIndex?: Map<ReactiveNode, ReactiveEdge>;
|
|
102
|
-
dependencyLookupDebt?: number;
|
|
103
|
-
dependencyLookupSearches?: number;
|
|
104
100
|
evaluate: (() => any) | undefined;
|
|
105
101
|
cachedValue: T;
|
|
106
102
|
pendingValue?: T;
|
|
@@ -108,6 +104,7 @@ export interface ReactiveNode<T = any> extends ScopeChildren<ReactiveNode>, Scop
|
|
|
108
104
|
effectTask?: EffectTask;
|
|
109
105
|
onStop?: Disposer;
|
|
110
106
|
sourceHooks?: OwnedSourceHooks;
|
|
107
|
+
onUnobserved?: Disposer;
|
|
111
108
|
}
|
|
112
109
|
/**
|
|
113
110
|
* Низкоуровневые read/write для raw-дорожки Bench Lab.
|
|
@@ -126,19 +123,20 @@ export interface ComputedAccess<T> {
|
|
|
126
123
|
read: (this: ComputedAccess<unknown>) => T;
|
|
127
124
|
}
|
|
128
125
|
/**
|
|
129
|
-
*
|
|
130
|
-
*
|
|
126
|
+
* Raw handle computed, который сам является полной записью графа.
|
|
127
|
+
* Поля ReactiveNode выделяются при создании внутри объекта; read вызывается
|
|
128
|
+
* только с receiver (серия Raph Top-1, 2026-10-20).
|
|
131
129
|
* @internal
|
|
132
130
|
*/
|
|
133
|
-
export interface ComputedAccessHandle<T> extends
|
|
131
|
+
export interface ComputedAccessHandle<T> extends ReactiveNode<T>, ComputedAccess<T> {
|
|
134
132
|
evaluate: (() => T) | undefined;
|
|
135
133
|
}
|
|
136
134
|
/**
|
|
137
|
-
*
|
|
138
|
-
*
|
|
135
|
+
* Объектный computed, который сам является полной записью графа.
|
|
136
|
+
* Значение по-прежнему вычисляется лениво при первом get().
|
|
139
137
|
* @internal
|
|
140
138
|
*/
|
|
141
|
-
export interface ComputedSourceAccessHandle<T> extends
|
|
139
|
+
export interface ComputedSourceAccessHandle<T> extends ReactiveNode<T>, ReadonlySignal<T> {
|
|
142
140
|
evaluate: (() => T) | undefined;
|
|
143
141
|
}
|
|
144
142
|
/**
|
|
@@ -169,7 +167,6 @@ export interface OwnedSourceHooks {
|
|
|
169
167
|
* @internal
|
|
170
168
|
*/
|
|
171
169
|
export interface HandleReaders {
|
|
172
|
-
|
|
173
|
-
initializeRaw: <T>(this: ComputedAccess<unknown>) => T;
|
|
170
|
+
read: <T>(this: ReadonlySignal<unknown> | ComputedAccess<unknown>) => T;
|
|
174
171
|
peek: <T>(this: ReadonlySignal<unknown>) => T;
|
|
175
172
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Disposer, EffectFactory, TrackedOperation, WatchCallback, WatchOptions, WatchSource } from './types';
|
|
1
|
+
import { Disposer, EffectFactory, TrackedOperation, WatchCallback, WatchOptions, WatchSource } from './types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Создаёт watch поверх переданной фабрики эффектов и политики чтения.
|
|
4
4
|
* Фабрика обязана поддерживать второй аргумент onStop: он связывает окончательную
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RaphExecutionRuntimeOptions, RaphRuntimeBase } from './RaphRuntimeBase.js';
|
|
2
|
+
/** Известная композиция без Proxy-объектов; signals, watch, aggregates и phases общие. */
|
|
3
|
+
export declare class RaphCompactExecutionRuntime extends RaphRuntimeBase<RaphCompactExecutionRuntime> {
|
|
4
|
+
readonly reactiveObjects: false;
|
|
5
|
+
readonly selectors: false;
|
|
6
|
+
constructor(options?: RaphExecutionRuntimeOptions);
|
|
7
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { RaphExecutionRuntimeOptions, RaphRuntimeBase } from './RaphRuntimeBase.js';
|
|
2
|
+
export declare class RaphExecutionRuntime extends RaphRuntimeBase<RaphExecutionRuntime> {
|
|
3
|
+
readonly reactiveObjects: true;
|
|
4
|
+
readonly selectors: true;
|
|
5
|
+
constructor(options?: RaphExecutionRuntimeOptions);
|
|
6
|
+
}
|