atom.io 0.40.1 → 0.40.3
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/dist/data/index.d.ts +1 -1
- package/dist/data/index.d.ts.map +1 -1
- package/dist/data/index.js.map +1 -1
- package/dist/internal/index.d.ts +155 -144
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +91 -39
- package/dist/internal/index.js.map +1 -1
- package/dist/introspection/index.d.ts +4 -4
- package/dist/introspection/index.d.ts.map +1 -1
- package/dist/introspection/index.js.map +1 -1
- package/dist/main/index.d.ts +80 -56
- package/dist/main/index.d.ts.map +1 -1
- package/dist/main/index.js.map +1 -1
- package/dist/react/index.d.ts +11 -11
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js.map +1 -1
- package/dist/react-devtools/index.d.ts.map +1 -1
- package/dist/react-devtools/index.js.map +1 -1
- package/package.json +1 -1
- package/src/data/struct.ts +2 -2
- package/src/internal/atom/create-regular-atom.ts +8 -7
- package/src/internal/atom/dispose-atom.ts +6 -3
- package/src/internal/atom/has-role.ts +1 -1
- package/src/internal/caching.ts +15 -15
- package/src/internal/events/ingest-creation-disposal.ts +1 -1
- package/src/internal/families/create-readonly-held-selector-family.ts +6 -7
- package/src/internal/families/create-readonly-pure-selector-family.ts +23 -17
- package/src/internal/families/create-regular-atom-family.ts +17 -15
- package/src/internal/families/create-selector-family.ts +9 -9
- package/src/internal/families/create-writable-held-selector-family.ts +6 -7
- package/src/internal/families/create-writable-pure-selector-family.ts +24 -18
- package/src/internal/families/dispose-from-store.ts +10 -7
- package/src/internal/families/find-in-store.ts +23 -23
- package/src/internal/families/get-family-of-token.ts +17 -17
- package/src/internal/families/mint-in-store.ts +11 -11
- package/src/internal/families/seek-in-store.ts +26 -26
- package/src/internal/get-state/get-fallback.ts +8 -8
- package/src/internal/get-state/get-from-store.ts +17 -12
- package/src/internal/get-state/read-or-compute-value.ts +78 -14
- package/src/internal/get-state/reduce-reference.ts +10 -10
- package/src/internal/index.ts +58 -53
- package/src/internal/join/join-internal.ts +15 -6
- package/src/internal/mutable/create-mutable-atom-family.ts +7 -8
- package/src/internal/mutable/get-json-family.ts +3 -2
- package/src/internal/mutable/get-update-family.ts +7 -5
- package/src/internal/mutable/tracker-family.ts +5 -1
- package/src/internal/mutable/tracker.ts +5 -1
- package/src/internal/operation.ts +4 -2
- package/src/internal/selector/create-readonly-pure-selector.ts +8 -6
- package/src/internal/selector/create-standalone-selector.ts +10 -10
- package/src/internal/selector/create-writable-pure-selector.ts +9 -7
- package/src/internal/selector/dispose-selector.ts +2 -2
- package/src/internal/selector/register-selector.ts +2 -2
- package/src/internal/selector/trace-selector-atoms.ts +3 -3
- package/src/internal/selector/update-selector-atoms.ts +1 -1
- package/src/internal/set-state/dispatch-state-update.ts +9 -5
- package/src/internal/set-state/evict-downstream.ts +4 -1
- package/src/internal/set-state/operate-on-store.ts +16 -10
- package/src/internal/set-state/reset-atom-or-selector.ts +7 -7
- package/src/internal/set-state/reset-in-store.ts +9 -6
- package/src/internal/set-state/set-atom-or-selector.ts +1 -1
- package/src/internal/set-state/set-atom.ts +1 -1
- package/src/internal/set-state/set-into-store.ts +10 -7
- package/src/internal/set-state/set-selector.ts +1 -1
- package/src/internal/store/deposit.ts +38 -30
- package/src/internal/store/mint-or-counterfeit.ts +23 -23
- package/src/internal/store/store.ts +9 -9
- package/src/internal/store/withdraw.ts +68 -62
- package/src/internal/subscribe/recall-state.ts +4 -1
- package/src/internal/subscribe/subscribe-to-root-atoms.ts +2 -2
- package/src/internal/subscribe/subscribe-to-state.ts +4 -4
- package/src/internal/timeline/create-timeline.ts +5 -5
- package/src/internal/utility-types.ts +2 -0
- package/src/introspection/attach-atom-index.ts +2 -2
- package/src/introspection/attach-selector-index.ts +4 -2
- package/src/introspection/attach-timeline-family.ts +13 -11
- package/src/introspection/attach-timeline-index.ts +1 -1
- package/src/introspection/attach-transaction-index.ts +1 -1
- package/src/introspection/attach-transaction-logs.ts +4 -2
- package/src/introspection/attach-type-selectors.ts +2 -1
- package/src/introspection/index.ts +3 -5
- package/src/main/atom.ts +15 -9
- package/src/main/events.ts +25 -23
- package/src/main/get-state.ts +10 -8
- package/src/main/reset-state.ts +4 -4
- package/src/main/selector.ts +41 -24
- package/src/main/set-state.ts +8 -4
- package/src/main/timeline.ts +5 -3
- package/src/main/tokens.ts +72 -44
- package/src/main/validators.ts +4 -4
- package/src/react/parse-state-overloads.ts +10 -10
- package/src/react/use-i.ts +6 -6
- package/src/react/use-loadable.ts +15 -15
- package/src/react/use-o.ts +9 -9
- package/src/react-devtools/StateEditor.tsx +5 -3
- package/src/react-devtools/StateIndex.tsx +6 -4
- package/src/react-devtools/Updates.tsx +1 -1
- package/src/react-devtools/store.ts +16 -7
package/dist/internal/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { SetRTX } from "atom.io/transceivers/set-rtx";
|
|
|
5
5
|
//#region src/internal/atom/has-role.d.ts
|
|
6
6
|
declare const INTERNAL_ROLES: readonly ["tracker:signal"];
|
|
7
7
|
type internalRole = (typeof INTERNAL_ROLES)[number];
|
|
8
|
-
declare function hasRole(atom: Atom<any>, role: internalRole): boolean;
|
|
8
|
+
declare function hasRole(atom: Atom<any, any>, role: internalRole): boolean;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/internal/store/circular-buffer.d.ts
|
|
11
11
|
declare class CircularBuffer<T> {
|
|
@@ -67,6 +67,7 @@ declare class SetOverlay<T> extends Set<T> {
|
|
|
67
67
|
//#endregion
|
|
68
68
|
//#region src/internal/utility-types.d.ts
|
|
69
69
|
type Fn = (...parameters: any[]) => any;
|
|
70
|
+
type Ctor<T> = new (...args: any[]) => T;
|
|
70
71
|
type Flat<R extends { [K in PropertyKey]: any }> = { [K in keyof R]: R[K] };
|
|
71
72
|
type Count<N extends number, A extends any[] = []> = [...A, any][`length`] extends N ? A[`length`] : A[`length`] | Count<N, [...A, any]>;
|
|
72
73
|
type Each<E extends any[]> = { [P in Count<E[`length`]>]: E[P] };
|
|
@@ -238,22 +239,22 @@ type TransactionEpoch = {
|
|
|
238
239
|
};
|
|
239
240
|
//#endregion
|
|
240
241
|
//#region src/internal/store/deposit.d.ts
|
|
241
|
-
declare function deposit<T>(state: RegularAtom<T>): RegularAtomToken<T>;
|
|
242
|
+
declare function deposit<T, E>(state: RegularAtom<T, E>): RegularAtomToken<T, Canonical, E>;
|
|
242
243
|
declare function deposit<T extends Transceiver<any, any, any>>(state: MutableAtom<T>): MutableAtomToken<T>;
|
|
243
|
-
declare function deposit<T>(state: Atom<T>): AtomToken<T>;
|
|
244
|
-
declare function deposit<T>(state: WritablePureSelector<T>): WritablePureSelectorToken<T>;
|
|
245
|
-
declare function deposit<T>(state: ReadonlyPureSelector<T>): ReadonlyPureSelectorToken<T>;
|
|
246
|
-
declare function deposit<T>(state: Selector<T>): SelectorToken<T>;
|
|
247
|
-
declare function deposit<T>(state: WritableState<T>): WritableToken<T>;
|
|
248
|
-
declare function deposit<T>(state: ReadableState<T>): ReadableToken<T>;
|
|
249
|
-
declare function deposit<T, K extends Canonical>(state: RegularAtomFamily<T, K>): RegularAtomFamilyToken<T, K>;
|
|
244
|
+
declare function deposit<T, E>(state: Atom<T, E>): AtomToken<T, Canonical, E>;
|
|
245
|
+
declare function deposit<T, E>(state: WritablePureSelector<T, E>): WritablePureSelectorToken<T, any, E>;
|
|
246
|
+
declare function deposit<T, E>(state: ReadonlyPureSelector<T, E>): ReadonlyPureSelectorToken<T, any, E>;
|
|
247
|
+
declare function deposit<T, E>(state: Selector<T, E>): SelectorToken<T, any, E>;
|
|
248
|
+
declare function deposit<T, E>(state: WritableState<T, E>): WritableToken<T, any, E>;
|
|
249
|
+
declare function deposit<T, E>(state: ReadableState<T, E>): ReadableToken<T, any, E>;
|
|
250
|
+
declare function deposit<T, K extends Canonical, E>(state: RegularAtomFamily<T, K, E>): RegularAtomFamilyToken<T, K, E>;
|
|
250
251
|
declare function deposit<T extends Transceiver<any, any, any>, K extends Canonical>(state: MutableAtomFamily<T, K>): MutableAtomFamilyToken<T, K>;
|
|
251
|
-
declare function deposit<T>(state: AtomFamily<T, any>): AtomFamilyToken<T, any>;
|
|
252
|
-
declare function deposit<T>(state: WritablePureSelectorFamily<T, any>): WritablePureSelectorFamilyToken<T, any>;
|
|
253
|
-
declare function deposit<T>(state: ReadonlyPureSelectorFamily<T, any>): ReadonlyPureSelectorFamilyToken<T, any>;
|
|
254
|
-
declare function deposit<T>(state: SelectorFamily<T, any>): SelectorFamilyToken<T, any>;
|
|
255
|
-
declare function deposit<T>(state: WritableFamily<T, any>): WritableFamilyToken<T, any>;
|
|
256
|
-
declare function deposit<T>(state: ReadableFamily<T, any>): ReadableFamilyToken<T, any>;
|
|
252
|
+
declare function deposit<T, E>(state: AtomFamily<T, any, E>): AtomFamilyToken<T, any, E>;
|
|
253
|
+
declare function deposit<T, E>(state: WritablePureSelectorFamily<T, any, E>): WritablePureSelectorFamilyToken<T, any, E>;
|
|
254
|
+
declare function deposit<T, E>(state: ReadonlyPureSelectorFamily<T, any, E>): ReadonlyPureSelectorFamilyToken<T, any, E>;
|
|
255
|
+
declare function deposit<T, E>(state: SelectorFamily<T, any, E>): SelectorFamilyToken<T, any, E>;
|
|
256
|
+
declare function deposit<T, E>(state: WritableFamily<T, any, E>): WritableFamilyToken<T, any, E>;
|
|
257
|
+
declare function deposit<T, E>(state: ReadableFamily<T, any, E>): ReadableFamilyToken<T, any, E>;
|
|
257
258
|
declare function deposit<T extends Fn>(state: Transaction<T>): TransactionToken<T>;
|
|
258
259
|
declare function deposit<M extends TimelineManageable>(state: Timeline<M>): TimelineToken<M>;
|
|
259
260
|
declare function deposit(resource: AtomIOInternalResource): AtomIOToken;
|
|
@@ -270,13 +271,13 @@ declare const FAMILY_MEMBER_TOKEN_TYPES: {
|
|
|
270
271
|
readonly writable_pure_selector_family: "writable_pure_selector";
|
|
271
272
|
};
|
|
272
273
|
declare function mint<T extends Transceiver<any, any, any>, K extends Canonical, Key extends K>(token: MutableAtomFamilyToken<T, K>, key: Key): MutableAtomToken<T>;
|
|
273
|
-
declare function mint<T, K extends Canonical, Key extends K>(token: RegularAtomFamilyToken<T, K>, key: Key, counterfeit?: typeof COUNTERFEIT): RegularAtomToken<T>;
|
|
274
|
-
declare function mint<T, K extends Canonical, Key extends K>(token: AtomFamilyToken<T, K>, key: Key, counterfeit?: typeof COUNTERFEIT): AtomToken<T>;
|
|
275
|
-
declare function mint<T, K extends Canonical, Key extends K>(token: WritablePureSelectorFamilyToken<T, K>, key: Key, counterfeit?: typeof COUNTERFEIT): WritablePureSelectorToken<T>;
|
|
276
|
-
declare function mint<T, K extends Canonical, Key extends K>(token: ReadonlyPureSelectorFamilyToken<T, K>, key: Key, counterfeit?: typeof COUNTERFEIT): ReadonlyPureSelectorToken<T>;
|
|
277
|
-
declare function mint<T, K extends Canonical, Key extends K>(token: SelectorFamilyToken<T, K>, key: Key, counterfeit?: typeof COUNTERFEIT): SelectorToken<T>;
|
|
278
|
-
declare function mint<T, K extends Canonical, Key extends K>(token: WritableFamilyToken<T, K>, key: Key, counterfeit?: typeof COUNTERFEIT): WritableToken<T>;
|
|
279
|
-
declare function mint<T, K extends Canonical, Key extends K>(token: ReadableFamilyToken<T, K>, key: Key, counterfeit?: typeof COUNTERFEIT): ReadableToken<T>;
|
|
274
|
+
declare function mint<T, K extends Canonical, Key extends K, E>(token: RegularAtomFamilyToken<T, K, E>, key: Key, counterfeit?: typeof COUNTERFEIT): RegularAtomToken<T, Key, E>;
|
|
275
|
+
declare function mint<T, K extends Canonical, Key extends K, E>(token: AtomFamilyToken<T, K, E>, key: Key, counterfeit?: typeof COUNTERFEIT): AtomToken<T, Key, E>;
|
|
276
|
+
declare function mint<T, K extends Canonical, Key extends K, E>(token: WritablePureSelectorFamilyToken<T, K, E>, key: Key, counterfeit?: typeof COUNTERFEIT): WritablePureSelectorToken<T, Key, E>;
|
|
277
|
+
declare function mint<T, K extends Canonical, Key extends K, E>(token: ReadonlyPureSelectorFamilyToken<T, K, E>, key: Key, counterfeit?: typeof COUNTERFEIT): ReadonlyPureSelectorToken<T, Key, E>;
|
|
278
|
+
declare function mint<T, K extends Canonical, Key extends K, E>(token: SelectorFamilyToken<T, K, E>, key: Key, counterfeit?: typeof COUNTERFEIT): SelectorToken<T, Key, E>;
|
|
279
|
+
declare function mint<T, K extends Canonical, Key extends K, E>(token: WritableFamilyToken<T, K, E>, key: Key, counterfeit?: typeof COUNTERFEIT): WritableToken<T, Key, E>;
|
|
280
|
+
declare function mint<T, K extends Canonical, Key extends K, E>(token: ReadableFamilyToken<T, K, E>, key: Key, counterfeit?: typeof COUNTERFEIT): ReadableToken<T, Key, E>;
|
|
280
281
|
//#endregion
|
|
281
282
|
//#region src/internal/join/create-join.d.ts
|
|
282
283
|
declare function createJoin<ASide extends string, AType extends string, BSide extends string, BType extends string, Cardinality extends `1:1` | `1:n` | `n:n`, Content extends Json.Object>(store: RootStore, options: JoinOptions<ASide, AType, BSide, BType, Cardinality, Content>, defaultContent: Content | undefined): JoinToken<ASide, AType, BSide, BType, Cardinality, Content>;
|
|
@@ -337,7 +338,7 @@ declare function claimWithinStore<H extends Hierarchy, V extends Exclude<Vassal<
|
|
|
337
338
|
type OperationProgress = OpenOperation<any> | {
|
|
338
339
|
open: false;
|
|
339
340
|
};
|
|
340
|
-
type OpenOperation<R extends ReadableToken<any> = ReadableToken<any>> = {
|
|
341
|
+
type OpenOperation<R extends ReadableToken<any, any> = ReadableToken<any, any>> = {
|
|
341
342
|
open: true;
|
|
342
343
|
token: R;
|
|
343
344
|
done: Set<string>;
|
|
@@ -345,7 +346,7 @@ type OpenOperation<R extends ReadableToken<any> = ReadableToken<any>> = {
|
|
|
345
346
|
timestamp: number;
|
|
346
347
|
subEvents: (AtomUpdateEvent<any> | StateCreationEvent<any>)[];
|
|
347
348
|
};
|
|
348
|
-
declare function openOperation(store: Store, token: ReadableToken<any>): number | (Store & {
|
|
349
|
+
declare function openOperation(store: Store, token: ReadableToken<any, any, any>): number | (Store & {
|
|
349
350
|
operation: OpenOperation;
|
|
350
351
|
});
|
|
351
352
|
declare function closeOperation(store: Store): void;
|
|
@@ -376,16 +377,16 @@ declare class Store implements Lineage {
|
|
|
376
377
|
child: ChildStore | null;
|
|
377
378
|
valueMap: Map<string, any>;
|
|
378
379
|
defaults: Map<string, any>;
|
|
379
|
-
atoms: Map<string, Atom<any>>;
|
|
380
|
-
writableSelectors: Map<string, WritableSelector<any>>;
|
|
381
|
-
readonlySelectors: Map<string, ReadonlySelector<any>>;
|
|
380
|
+
atoms: Map<string, Atom<any, any>>;
|
|
381
|
+
writableSelectors: Map<string, WritableSelector<any, any>>;
|
|
382
|
+
readonlySelectors: Map<string, ReadonlySelector<any, any>>;
|
|
382
383
|
atomsThatAreDefault: Set<string>;
|
|
383
384
|
selectorAtoms: Junction<`selectorKey`, string, `atomKey`, string>;
|
|
384
385
|
selectorGraph: Junction<`upstreamSelectorKey`, string, `downstreamSelectorKey`, string, {
|
|
385
386
|
source: string;
|
|
386
387
|
}>;
|
|
387
388
|
trackers: Map<string, Tracker<Transceiver<any, any, any>>>;
|
|
388
|
-
families: Map<string, HeldSelectorFamily<any, any> | MutableAtomFamily<any, any> | PureSelectorFamily<any, any> | RegularAtomFamily<any, any>>;
|
|
389
|
+
families: Map<string, HeldSelectorFamily<any, any> | MutableAtomFamily<any, any> | PureSelectorFamily<any, any, any> | RegularAtomFamily<any, any, any>>;
|
|
389
390
|
joins: Map<string, Join<any, any, any, any, any, any>>;
|
|
390
391
|
transactions: Map<string, Transaction<Fn>>;
|
|
391
392
|
transactionMeta: TransactionEpoch | TransactionProgress<Fn>;
|
|
@@ -415,10 +416,10 @@ declare class Store implements Lineage {
|
|
|
415
416
|
constructor(config: Store[`config`], store?: Store | null);
|
|
416
417
|
}
|
|
417
418
|
type StoreEventCarrier = {
|
|
418
|
-
atomCreation: Subject<AtomToken<unknown>>;
|
|
419
|
-
atomDisposal: Subject<AtomToken<unknown>>;
|
|
420
|
-
selectorCreation: Subject<SelectorToken<unknown>>;
|
|
421
|
-
selectorDisposal: Subject<SelectorToken<unknown>>;
|
|
419
|
+
atomCreation: Subject<AtomToken<unknown, any, any>>;
|
|
420
|
+
atomDisposal: Subject<AtomToken<unknown, any, any>>;
|
|
421
|
+
selectorCreation: Subject<SelectorToken<unknown, any, any>>;
|
|
422
|
+
selectorDisposal: Subject<SelectorToken<unknown, any, any>>;
|
|
422
423
|
timelineCreation: Subject<TimelineToken<unknown>>;
|
|
423
424
|
transactionCreation: Subject<TransactionToken<Fn>>;
|
|
424
425
|
transactionApplying: StatefulSubject<TransactionProgress<Fn> | null>;
|
|
@@ -435,38 +436,38 @@ declare const IMPLICIT: {
|
|
|
435
436
|
declare const clearStore: (store: Store) => void;
|
|
436
437
|
//#endregion
|
|
437
438
|
//#region src/internal/store/withdraw.d.ts
|
|
438
|
-
declare function withdraw<T>(store: Store, token: RegularAtomToken<T>): RegularAtom<T>;
|
|
439
|
+
declare function withdraw<T, E>(store: Store, token: RegularAtomToken<T, any, E>): RegularAtom<T, E>;
|
|
439
440
|
declare function withdraw<T extends Transceiver<any, any, any>>(store: Store, token: MutableAtomToken<T, any>): MutableAtom<T>;
|
|
440
|
-
declare function withdraw<T>(store: Store, token: AtomToken<T>): Atom<T>;
|
|
441
|
+
declare function withdraw<T, E>(store: Store, token: AtomToken<T, any, E>): Atom<T, E>;
|
|
441
442
|
declare function withdraw<T>(store: Store, token: WritableHeldSelectorToken<T>): WritableHeldSelector<T>;
|
|
442
443
|
declare function withdraw<T>(store: Store, token: ReadonlyHeldSelectorToken<T>): ReadonlyHeldSelector<T>;
|
|
443
|
-
declare function withdraw<T>(store: Store, token: WritablePureSelectorToken<T>): WritablePureSelector<T>;
|
|
444
|
-
declare function withdraw<T>(store: Store, token: ReadonlyPureSelectorToken<T>): ReadonlyPureSelector<T>;
|
|
445
|
-
declare function withdraw<T>(store: Store, token: ReadonlySelectorToken<T>): ReadonlySelector<T>;
|
|
446
|
-
declare function withdraw<T>(store: Store, token: WritableSelectorToken<T>): WritableSelector<T>;
|
|
444
|
+
declare function withdraw<T, E>(store: Store, token: WritablePureSelectorToken<T, any, E>): WritablePureSelector<T, E>;
|
|
445
|
+
declare function withdraw<T, E>(store: Store, token: ReadonlyPureSelectorToken<T, any, E>): ReadonlyPureSelector<T, E>;
|
|
446
|
+
declare function withdraw<T, E>(store: Store, token: ReadonlySelectorToken<T, any, E>): ReadonlySelector<T, E>;
|
|
447
|
+
declare function withdraw<T, E>(store: Store, token: WritableSelectorToken<T, any, E>): WritableSelector<T, E>;
|
|
447
448
|
declare function withdraw<T>(store: Store, token: HeldSelectorToken<T>): HeldSelector<T>;
|
|
448
|
-
declare function withdraw<T>(store: Store, token: PureSelectorToken<T>): PureSelector<T>;
|
|
449
|
-
declare function withdraw<T>(store: Store, token: SelectorToken<T>): Selector<T>;
|
|
450
|
-
declare function withdraw<T>(store: Store, token: WritableToken<T>): WritableState<T>;
|
|
451
|
-
declare function withdraw<T>(store: Store, token: ReadableToken<T>): ReadableState<T>;
|
|
452
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: RegularAtomFamilyToken<T, K>): RegularAtomFamily<T, K>;
|
|
449
|
+
declare function withdraw<T, E>(store: Store, token: PureSelectorToken<T, any, E>): PureSelector<T, E>;
|
|
450
|
+
declare function withdraw<T, E>(store: Store, token: SelectorToken<T, any, E>): Selector<T, E>;
|
|
451
|
+
declare function withdraw<T, E>(store: Store, token: WritableToken<T, any, E>): WritableState<T, E>;
|
|
452
|
+
declare function withdraw<T, E>(store: Store, token: ReadableToken<T, any, E>): ReadableState<T, E>;
|
|
453
|
+
declare function withdraw<T, K extends Canonical, E>(store: Store, token: RegularAtomFamilyToken<T, K, E>): RegularAtomFamily<T, K, E>;
|
|
453
454
|
declare function withdraw<T extends Transceiver<any, any, any>, K extends Canonical>(store: Store, token: MutableAtomFamilyToken<T, K>): MutableAtomFamily<T, K>;
|
|
454
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: AtomFamilyToken<T, K>): AtomFamily<T, K>;
|
|
455
|
+
declare function withdraw<T, K extends Canonical, E>(store: Store, token: AtomFamilyToken<T, K, E>): AtomFamily<T, K, E>;
|
|
455
456
|
declare function withdraw<T, K extends Canonical>(store: Store, token: ReadonlyHeldSelectorFamilyToken<T, K>): ReadonlyHeldSelectorFamily<T, K>;
|
|
456
457
|
declare function withdraw<T, K extends Canonical>(store: Store, token: WritableHeldSelectorFamilyToken<T, K>): WritableHeldSelectorFamily<T, K>;
|
|
457
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: ReadonlyPureSelectorFamilyToken<T, K>): ReadonlyPureSelectorFamily<T, K>;
|
|
458
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: WritablePureSelectorFamilyToken<T, K>): WritablePureSelectorFamily<T, K>;
|
|
459
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: ReadonlySelectorFamilyToken<T, K>): ReadonlySelectorFamily<T, K>;
|
|
460
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: WritableSelectorFamilyToken<T, K>): WritableSelectorFamily<T, K>;
|
|
458
|
+
declare function withdraw<T, K extends Canonical, E>(store: Store, token: ReadonlyPureSelectorFamilyToken<T, K, E>): ReadonlyPureSelectorFamily<T, K, E>;
|
|
459
|
+
declare function withdraw<T, K extends Canonical, E>(store: Store, token: WritablePureSelectorFamilyToken<T, K, E>): WritablePureSelectorFamily<T, K, E>;
|
|
460
|
+
declare function withdraw<T, K extends Canonical, E>(store: Store, token: ReadonlySelectorFamilyToken<T, K, E>): ReadonlySelectorFamily<T, K, E>;
|
|
461
|
+
declare function withdraw<T, K extends Canonical, E>(store: Store, token: WritableSelectorFamilyToken<T, K, E>): WritableSelectorFamily<T, K, E>;
|
|
461
462
|
declare function withdraw<T, K extends Canonical>(store: Store, token: HeldSelectorFamilyToken<T, K>): HeldSelectorFamily<T, K>;
|
|
462
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: PureSelectorFamilyToken<T, K>): PureSelectorFamily<T, K>;
|
|
463
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: SelectorFamilyToken<T, K>): SelectorFamily<T, K>;
|
|
464
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: WritableFamilyToken<T, K>): WritableFamily<T, K>;
|
|
465
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: ReadableFamilyToken<T, K>): ReadableFamily<T, K>;
|
|
463
|
+
declare function withdraw<T, K extends Canonical, E>(store: Store, token: PureSelectorFamilyToken<T, K, E>): PureSelectorFamily<T, K, E>;
|
|
464
|
+
declare function withdraw<T, K extends Canonical, E>(store: Store, token: SelectorFamilyToken<T, K, E>): SelectorFamily<T, K, E>;
|
|
465
|
+
declare function withdraw<T, K extends Canonical, E>(store: Store, token: WritableFamilyToken<T, K, E>): WritableFamily<T, K, E>;
|
|
466
|
+
declare function withdraw<T, K extends Canonical, E>(store: Store, token: ReadableFamilyToken<T, K, E>): ReadableFamily<T, K, E>;
|
|
466
467
|
declare function withdraw<T extends Fn>(store: Store, token: TransactionToken<T>): Transaction<T extends Fn ? T : never>;
|
|
467
468
|
declare function withdraw<T>(store: Store, token: TimelineToken<T>): Timeline<T extends TimelineManageable ? T : never>;
|
|
468
|
-
declare function withdraw<T>(store: Store, token: WritableToken<T>): WritableState<T>;
|
|
469
|
-
declare function withdraw<T>(store: Store, token: ReadableToken<T>): ReadableState<T>;
|
|
469
|
+
declare function withdraw<T, E>(store: Store, token: WritableToken<T, any, E>): WritableState<T, E>;
|
|
470
|
+
declare function withdraw<T, E>(store: Store, token: ReadableToken<T, any, E>): ReadableState<T, E>;
|
|
470
471
|
declare function withdraw(store: Store, token: AtomIOToken): AtomIOInternalResource;
|
|
471
472
|
//#endregion
|
|
472
473
|
//#region src/internal/mutable/transceiver.d.ts
|
|
@@ -495,13 +496,13 @@ declare function createMutableAtom<T extends Transceiver<any, any, any>>(store:
|
|
|
495
496
|
declare function createMutableAtomFamily<T extends Transceiver<any, any, any>, K extends Canonical>(store: RootStore, options: MutableAtomFamilyOptions<T, K>, internalRoles?: string[]): MutableAtomFamilyToken<T, K>;
|
|
496
497
|
//#endregion
|
|
497
498
|
//#region src/internal/mutable/get-json-family.d.ts
|
|
498
|
-
declare const getJsonFamily: <Core extends Transceiver<any, Json.Serializable, Json.Serializable>, Key extends Canonical>(mutableAtomFamily: MutableAtomFamilyToken<Core, Key>, store: Store) => WritablePureSelectorFamily<ReturnType<Core[`toJSON`]>, Key>;
|
|
499
|
+
declare const getJsonFamily: <Core extends Transceiver<any, Json.Serializable, Json.Serializable>, Key extends Canonical>(mutableAtomFamily: MutableAtomFamilyToken<Core, Key>, store: Store) => WritablePureSelectorFamily<ReturnType<Core[`toJSON`]>, Key, never>;
|
|
499
500
|
//#endregion
|
|
500
501
|
//#region src/internal/mutable/get-json-token.d.ts
|
|
501
502
|
declare const getJsonToken: <T extends Transceiver<any, any, any>>(store: Store, mutableAtomToken: MutableAtomToken<T>) => WritablePureSelectorToken<AsJSON<T>>;
|
|
502
503
|
//#endregion
|
|
503
504
|
//#region src/internal/mutable/get-update-family.d.ts
|
|
504
|
-
declare const getUpdateFamily: <T extends Transceiver<any, Json.Serializable, Json.Serializable>, K extends string>(mutableAtomFamily: MutableAtomFamilyToken<T, K>, store: Store) =>
|
|
505
|
+
declare const getUpdateFamily: <T extends Transceiver<any, Json.Serializable, Json.Serializable>, K extends string>(mutableAtomFamily: MutableAtomFamilyToken<T, K>, store: Store) => RegularAtomFamily<SignalFrom<T>, K, never>;
|
|
505
506
|
//#endregion
|
|
506
507
|
//#region src/internal/mutable/get-update-token.d.ts
|
|
507
508
|
declare const getUpdateToken: <T extends Transceiver<any, any, any>>(mutableAtomToken: MutableAtomToken<T>) => RegularAtomToken<SignalFrom<T>>;
|
|
@@ -536,10 +537,10 @@ declare class FamilyTracker<T extends Transceiver<any, any, any>, K extends Cano
|
|
|
536
537
|
declare function arbitrary(random?: () => number): string;
|
|
537
538
|
//#endregion
|
|
538
539
|
//#region src/internal/atom/create-regular-atom.d.ts
|
|
539
|
-
declare function createRegularAtom<T>(store: Store, options: RegularAtomOptions<T>, family: FamilyMetadata | undefined, internalRoles?: internalRole[]): RegularAtomToken<T>;
|
|
540
|
+
declare function createRegularAtom<T, K extends Canonical, E>(store: Store, options: RegularAtomOptions<T, E>, family: FamilyMetadata<K> | undefined, internalRoles?: internalRole[]): RegularAtomToken<T, K, E>;
|
|
540
541
|
//#endregion
|
|
541
542
|
//#region src/internal/atom/dispose-atom.d.ts
|
|
542
|
-
declare function disposeAtom(store: Store, atomToken: AtomToken<any>): void;
|
|
543
|
+
declare function disposeAtom(store: Store, atomToken: AtomToken<any, any, any>): void;
|
|
543
544
|
//#endregion
|
|
544
545
|
//#region src/internal/future.d.ts
|
|
545
546
|
/**
|
|
@@ -563,15 +564,15 @@ declare class Future<T> extends Promise<T> {
|
|
|
563
564
|
}
|
|
564
565
|
//#endregion
|
|
565
566
|
//#region src/internal/caching.d.ts
|
|
566
|
-
declare function writeToCache<T>(target: Store, state: ReadableState<T>, value: T): T;
|
|
567
|
-
declare function writeToCache<T extends Promise<any
|
|
567
|
+
declare function writeToCache<T, E>(target: Store, state: ReadableState<T, E>, value: E | T): E | T;
|
|
568
|
+
declare function writeToCache<T extends Promise<any>, E>(target: Store, state: ReadableState<T, E>, value: T): Future<Awaited<E | T>>;
|
|
568
569
|
/**
|
|
569
570
|
* @param target - the newest layer of the store
|
|
570
571
|
* @param state - the state to read from cache
|
|
571
572
|
* @param mut - whether the value is intended to be mutable
|
|
572
573
|
* @returns the state's current value
|
|
573
574
|
*/
|
|
574
|
-
declare function readFromCache<T>(target: Store, state: ReadableState<T>, mut: `mut` | undefined): T;
|
|
575
|
+
declare function readFromCache<T, E>(target: Store, state: ReadableState<T, E>, mut: `mut` | undefined): E | T;
|
|
575
576
|
declare function evictCachedValue(target: Store, key: string): void;
|
|
576
577
|
//#endregion
|
|
577
578
|
//#region src/internal/capitalize.d.ts
|
|
@@ -582,7 +583,7 @@ declare function ingestAtomUpdateEvent(store: Store, event: AtomUpdateEvent<any>
|
|
|
582
583
|
//#endregion
|
|
583
584
|
//#region src/internal/events/ingest-creation-disposal.d.ts
|
|
584
585
|
declare function ingestCreationEvent(store: Store, event: StateCreationEvent<any>, applying: `newValue` | `oldValue`): void;
|
|
585
|
-
declare function ingestDisposalEvent(store: Store, event: StateDisposalEvent<ReadableToken<any>>, applying: `newValue` | `oldValue`): void;
|
|
586
|
+
declare function ingestDisposalEvent(store: Store, event: StateDisposalEvent<ReadableToken<any, any, any>>, applying: `newValue` | `oldValue`): void;
|
|
586
587
|
declare function ingestMoleculeCreationEvent(store: Store, event: MoleculeCreationEvent, applying: `newValue` | `oldValue`): void;
|
|
587
588
|
declare function ingestMoleculeDisposalEvent(store: Store, event: MoleculeDisposalEvent, applying: `newValue` | `oldValue`): void;
|
|
588
589
|
declare function ingestMoleculeTransferEvent(store: Store, event: MoleculeTransferEvent, applying: `newValue` | `oldValue`): void;
|
|
@@ -594,44 +595,44 @@ declare function ingestSelectorUpdateEvent(store: Store, selectorUpdate: Timelin
|
|
|
594
595
|
declare function ingestTransactionOutcomeEvent(store: Store, event: TransactionOutcomeEvent<any>, applying: `newValue` | `oldValue`): void;
|
|
595
596
|
//#endregion
|
|
596
597
|
//#region src/internal/families/create-readonly-pure-selector-family.d.ts
|
|
597
|
-
declare function createReadonlyPureSelectorFamily<T, K extends Canonical>(store: RootStore, options: ReadonlyPureSelectorFamilyOptions<T, K>, internalRoles?: string[]): ReadonlyPureSelectorFamilyToken<T, K>;
|
|
598
|
+
declare function createReadonlyPureSelectorFamily<T, K extends Canonical, E>(store: RootStore, options: ReadonlyPureSelectorFamilyOptions<T, K, E>, internalRoles?: string[]): ReadonlyPureSelectorFamilyToken<T, K, E>;
|
|
598
599
|
//#endregion
|
|
599
600
|
//#region src/internal/families/create-regular-atom-family.d.ts
|
|
600
|
-
declare function createRegularAtomFamily<T, K extends Canonical>(store: RootStore, options: RegularAtomFamilyOptions<T, K>, internalRoles?: string[]): RegularAtomFamilyToken<T, K>;
|
|
601
|
+
declare function createRegularAtomFamily<T, K extends Canonical, E>(store: RootStore, options: RegularAtomFamilyOptions<T, K, E>, internalRoles?: string[]): RegularAtomFamilyToken<T, K, E>;
|
|
601
602
|
//#endregion
|
|
602
603
|
//#region src/internal/families/create-selector-family.d.ts
|
|
603
604
|
declare function createSelectorFamily<T extends object, K extends Canonical>(store: RootStore, options: WritableHeldSelectorFamilyOptions<T, K>): WritableHeldSelectorFamilyToken<T, K>;
|
|
604
605
|
declare function createSelectorFamily<T extends object, K extends Canonical>(store: RootStore, options: ReadonlyHeldSelectorFamilyOptions<T, K>): ReadonlyHeldSelectorFamilyToken<T, K>;
|
|
605
|
-
declare function createSelectorFamily<T, K extends Canonical>(store: RootStore, options: WritablePureSelectorFamilyOptions<T, K>): WritablePureSelectorFamilyToken<T, K>;
|
|
606
|
-
declare function createSelectorFamily<T, K extends Canonical>(store: RootStore, options: ReadonlyPureSelectorFamilyOptions<T, K>): ReadonlyPureSelectorFamilyToken<T, K>;
|
|
606
|
+
declare function createSelectorFamily<T, K extends Canonical, E>(store: RootStore, options: WritablePureSelectorFamilyOptions<T, K, E>): WritablePureSelectorFamilyToken<T, K, E>;
|
|
607
|
+
declare function createSelectorFamily<T, K extends Canonical, E>(store: RootStore, options: ReadonlyPureSelectorFamilyOptions<T, K, E>): ReadonlyPureSelectorFamilyToken<T, K, E>;
|
|
607
608
|
//#endregion
|
|
608
609
|
//#region src/internal/families/create-writable-pure-selector-family.d.ts
|
|
609
|
-
declare function createWritablePureSelectorFamily<T, K extends Canonical>(store: Store, options: WritablePureSelectorFamilyOptions<T, K>, internalRoles?: string[]): WritablePureSelectorFamilyToken<T, K>;
|
|
610
|
+
declare function createWritablePureSelectorFamily<T, K extends Canonical, E>(store: Store, options: WritablePureSelectorFamilyOptions<T, K, E>, internalRoles?: string[]): WritablePureSelectorFamilyToken<T, K, E>;
|
|
610
611
|
//#endregion
|
|
611
612
|
//#region src/internal/families/dispose-from-store.d.ts
|
|
612
|
-
declare function disposeFromStore(store: Store, token: ReadableToken<any>): void;
|
|
613
|
-
declare function disposeFromStore<K extends Canonical, Key extends K>(store: Store, token: ReadableFamilyToken<any, K>, key: Key): void;
|
|
614
|
-
declare function disposeFromStore<K extends Canonical, Key extends K>(store: Store, ...params: [token: ReadableFamilyToken<any, K>, key: Key] | [token: ReadableToken<any>]): void;
|
|
613
|
+
declare function disposeFromStore(store: Store, token: ReadableToken<any, any, any>): void;
|
|
614
|
+
declare function disposeFromStore<K extends Canonical, Key extends K>(store: Store, token: ReadableFamilyToken<any, K, any>, key: Key): void;
|
|
615
|
+
declare function disposeFromStore<K extends Canonical, Key extends K>(store: Store, ...params: [token: ReadableFamilyToken<any, K, any>, key: Key] | [token: ReadableToken<any, any, any>]): void;
|
|
615
616
|
//#endregion
|
|
616
617
|
//#region src/internal/families/find-in-store.d.ts
|
|
617
618
|
declare function findInStore<T extends Transceiver<any, any, any>, K extends Canonical, Key extends K>(store: Store, familyToken: MutableAtomFamilyToken<T, K>, key: Key): MutableAtomToken<T, K>;
|
|
618
|
-
declare function findInStore<T, K extends Canonical, Key extends K>(store: Store, familyToken: RegularAtomFamilyToken<T, K>, key: Key): RegularAtomToken<T, K>;
|
|
619
|
-
declare function findInStore<T, K extends Canonical, Key extends K>(store: Store, familyToken: AtomFamilyToken<T, K>, key: Key): AtomToken<T, K>;
|
|
620
|
-
declare function findInStore<T, K extends Canonical, Key extends K>(store: Store, familyToken: WritablePureSelectorFamilyToken<T, K>, key: Key): WritablePureSelectorToken<T, K>;
|
|
621
|
-
declare function findInStore<T, K extends Canonical, Key extends K>(store: Store, familyToken: ReadonlyPureSelectorFamilyToken<T, K>, key: Key): ReadonlyPureSelectorToken<T, K>;
|
|
622
|
-
declare function findInStore<T, K extends Canonical, Key extends K>(store: Store, familyToken: SelectorFamilyToken<T, K>, key: Key): SelectorToken<T, K>;
|
|
623
|
-
declare function findInStore<T, K extends Canonical, Key extends K>(store: Store, familyToken: WritableFamilyToken<T, K>, key: Key): WritableToken<T, K>;
|
|
624
|
-
declare function findInStore<T, K extends Canonical, Key extends K>(store: Store, familyToken: ReadableFamilyToken<T, K>, key: Key): ReadableToken<T, K>;
|
|
619
|
+
declare function findInStore<T, K extends Canonical, Key extends K, E>(store: Store, familyToken: RegularAtomFamilyToken<T, K, E>, key: Key): RegularAtomToken<T, K, E>;
|
|
620
|
+
declare function findInStore<T, K extends Canonical, Key extends K, E>(store: Store, familyToken: AtomFamilyToken<T, K, E>, key: Key): AtomToken<T, K, E>;
|
|
621
|
+
declare function findInStore<T, K extends Canonical, Key extends K, E>(store: Store, familyToken: WritablePureSelectorFamilyToken<T, K, E>, key: Key): WritablePureSelectorToken<T, K, E>;
|
|
622
|
+
declare function findInStore<T, K extends Canonical, Key extends K, E>(store: Store, familyToken: ReadonlyPureSelectorFamilyToken<T, K, E>, key: Key): ReadonlyPureSelectorToken<T, K, E>;
|
|
623
|
+
declare function findInStore<T, K extends Canonical, Key extends K, E>(store: Store, familyToken: SelectorFamilyToken<T, K, E>, key: Key): SelectorToken<T, K, E>;
|
|
624
|
+
declare function findInStore<T, K extends Canonical, Key extends K, E>(store: Store, familyToken: WritableFamilyToken<T, K, E>, key: Key): WritableToken<T, K, E>;
|
|
625
|
+
declare function findInStore<T, K extends Canonical, Key extends K, E>(store: Store, familyToken: ReadableFamilyToken<T, K, E>, key: Key): ReadableToken<T, K, E>;
|
|
625
626
|
//#endregion
|
|
626
627
|
//#region src/internal/families/seek-in-store.d.ts
|
|
627
|
-
declare function seekInStore<T extends Transceiver<any, any, any>, K extends Canonical, Key extends K>(store: Store, token: MutableAtomFamilyToken<T, K>, key: Key): MutableAtomToken<T,
|
|
628
|
-
declare function seekInStore<T, K extends Canonical, Key extends K>(store: Store, token: RegularAtomFamilyToken<T, K>, key: Key): RegularAtomToken<T,
|
|
629
|
-
declare function seekInStore<T, K extends Canonical, Key extends K>(store: Store, token: AtomFamilyToken<T, K>, key: Key): AtomToken<T,
|
|
630
|
-
declare function seekInStore<T, K extends Canonical, Key extends K>(store: Store, token: WritablePureSelectorFamilyToken<T, K>, key: Key): WritablePureSelectorToken<T,
|
|
631
|
-
declare function seekInStore<T, K extends Canonical, Key extends K>(store: Store, token: ReadonlyPureSelectorFamilyToken<T, K>, key: Key): ReadonlyPureSelectorToken<T,
|
|
632
|
-
declare function seekInStore<T, K extends Canonical, Key extends K>(store: Store, token: SelectorFamilyToken<T, K>, key: Key): SelectorToken<T,
|
|
633
|
-
declare function seekInStore<T, K extends Canonical, Key extends K>(store: Store, token: WritableFamilyToken<T, K>, key: Key): WritableToken<T,
|
|
634
|
-
declare function seekInStore<T, K extends Canonical, Key extends K>(store: Store, token: ReadableFamilyToken<T, K>, key: Key): ReadableToken<T,
|
|
628
|
+
declare function seekInStore<T extends Transceiver<any, any, any>, K extends Canonical, Key extends K>(store: Store, token: MutableAtomFamilyToken<T, K>, key: Key): MutableAtomToken<T, Key> | undefined;
|
|
629
|
+
declare function seekInStore<T, K extends Canonical, Key extends K, E>(store: Store, token: RegularAtomFamilyToken<T, K, E>, key: Key): RegularAtomToken<T, Key, E> | undefined;
|
|
630
|
+
declare function seekInStore<T, K extends Canonical, Key extends K, E>(store: Store, token: AtomFamilyToken<T, K, E>, key: Key): AtomToken<T, Key, E> | undefined;
|
|
631
|
+
declare function seekInStore<T, K extends Canonical, Key extends K, E>(store: Store, token: WritablePureSelectorFamilyToken<T, K, E>, key: Key): WritablePureSelectorToken<T, Key, E> | undefined;
|
|
632
|
+
declare function seekInStore<T, K extends Canonical, Key extends K, E>(store: Store, token: ReadonlyPureSelectorFamilyToken<T, K, E>, key: Key): ReadonlyPureSelectorToken<T, Key, E> | undefined;
|
|
633
|
+
declare function seekInStore<T, K extends Canonical, Key extends K, E>(store: Store, token: SelectorFamilyToken<T, K, E>, key: Key): SelectorToken<T, Key, E> | undefined;
|
|
634
|
+
declare function seekInStore<T, K extends Canonical, Key extends K, E>(store: Store, token: WritableFamilyToken<T, K, E>, key: Key): WritableToken<T, Key, E> | undefined;
|
|
635
|
+
declare function seekInStore<T, K extends Canonical, Key extends K, E>(store: Store, token: ReadableFamilyToken<T, K, E>, key: Key): ReadableToken<T, Key, E> | undefined;
|
|
635
636
|
//#endregion
|
|
636
637
|
//#region src/internal/get-environment-data.d.ts
|
|
637
638
|
type EnvironmentData = {
|
|
@@ -641,12 +642,13 @@ declare function getEnvironmentData(store: Store): EnvironmentData;
|
|
|
641
642
|
//#endregion
|
|
642
643
|
//#region src/internal/get-state/get-from-store.d.ts
|
|
643
644
|
declare function getFromStore<T>(store: Store, token: ReadableToken<T>): T;
|
|
644
|
-
declare function getFromStore<T,
|
|
645
|
-
declare function getFromStore<T, K extends Canonical,
|
|
645
|
+
declare function getFromStore<T, E>(store: Store, token: ReadableToken<T, any, E>): E | T;
|
|
646
|
+
declare function getFromStore<T, K extends Canonical, E>(store: Store, token: ReadableFamilyToken<T, K, E>, key: K): ViewOf<E | T>;
|
|
647
|
+
declare function getFromStore<T, K extends Canonical, Key extends K, E>(store: Store, ...params: [token: ReadableFamilyToken<T, K, E>, key: Key] | [token: ReadableToken<T, any, E>]): ViewOf<E | T>;
|
|
646
648
|
//#endregion
|
|
647
649
|
//#region src/internal/get-state/read-or-compute-value.d.ts
|
|
648
|
-
declare function readOrComputeValue<T>(target: Store, state: ReadableState<T>, mut?: undefined): ViewOf<T>;
|
|
649
|
-
declare function readOrComputeValue<T>(target: Store, state: ReadableState<T>, mut: `mut`): T;
|
|
650
|
+
declare function readOrComputeValue<T, E>(target: Store, state: ReadableState<T, E>, mut?: undefined): ViewOf<E | T>;
|
|
651
|
+
declare function readOrComputeValue<T, E>(target: Store, state: ReadableState<T, E>, mut: `mut`): E | T;
|
|
650
652
|
//#endregion
|
|
651
653
|
//#region src/internal/get-trace.d.ts
|
|
652
654
|
declare function getTrace(error: Error): string;
|
|
@@ -694,22 +696,22 @@ declare function isReservedIntrospectionKey(value: string): value is ReservedInt
|
|
|
694
696
|
declare function createReadonlyHeldSelector<T extends object>(store: Store, options: ReadonlyHeldSelectorOptions<T>, family: FamilyMetadata | undefined): ReadonlyHeldSelectorToken<T>;
|
|
695
697
|
//#endregion
|
|
696
698
|
//#region src/internal/selector/create-readonly-pure-selector.d.ts
|
|
697
|
-
declare function createReadonlyPureSelector<T>(store: Store, options: ReadonlyPureSelectorOptions<T>, family: FamilyMetadata | undefined): ReadonlyPureSelectorToken<T>;
|
|
699
|
+
declare function createReadonlyPureSelector<T, K extends Canonical, E>(store: Store, options: ReadonlyPureSelectorOptions<T, E>, family: FamilyMetadata<K> | undefined): ReadonlyPureSelectorToken<T, K, E>;
|
|
698
700
|
//#endregion
|
|
699
701
|
//#region src/internal/selector/create-standalone-selector.d.ts
|
|
700
702
|
declare function createStandaloneSelector<T extends object>(store: Store, options: WritableHeldSelectorOptions<T>): WritableHeldSelectorToken<T>;
|
|
701
703
|
declare function createStandaloneSelector<T extends object>(store: Store, options: ReadonlyHeldSelectorOptions<T>): ReadonlyHeldSelectorToken<T>;
|
|
702
|
-
declare function createStandaloneSelector<T>(store: Store, options: WritablePureSelectorOptions<T>): WritablePureSelectorToken<T>;
|
|
703
|
-
declare function createStandaloneSelector<T>(store: Store, options: ReadonlyPureSelectorOptions<T>): ReadonlyPureSelectorToken<T>;
|
|
704
|
+
declare function createStandaloneSelector<T, E>(store: Store, options: WritablePureSelectorOptions<T, E>): WritablePureSelectorToken<T, any, E>;
|
|
705
|
+
declare function createStandaloneSelector<T, E>(store: Store, options: ReadonlyPureSelectorOptions<T, E>): ReadonlyPureSelectorToken<T, any, E>;
|
|
704
706
|
//#endregion
|
|
705
707
|
//#region src/internal/selector/create-writable-held-selector.d.ts
|
|
706
708
|
declare function createWritableHeldSelector<T extends object>(store: Store, options: WritableHeldSelectorOptions<T>, family: FamilyMetadata | undefined): WritableHeldSelectorToken<T>;
|
|
707
709
|
//#endregion
|
|
708
710
|
//#region src/internal/selector/create-writable-pure-selector.d.ts
|
|
709
|
-
declare function createWritablePureSelector<T>(store: Store, options: WritablePureSelectorOptions<T>, family: FamilyMetadata | undefined): WritablePureSelectorToken<T>;
|
|
711
|
+
declare function createWritablePureSelector<T, K extends Canonical, E>(store: Store, options: WritablePureSelectorOptions<T, E>, family: FamilyMetadata<K> | undefined): WritablePureSelectorToken<T, K, E>;
|
|
710
712
|
//#endregion
|
|
711
713
|
//#region src/internal/selector/dispose-selector.d.ts
|
|
712
|
-
declare function disposeSelector(store: Store, selectorToken: SelectorToken<unknown>): void;
|
|
714
|
+
declare function disposeSelector(store: Store, selectorToken: SelectorToken<unknown, any, any>): void;
|
|
713
715
|
//#endregion
|
|
714
716
|
//#region src/internal/selector/get-selector-dependency-keys.d.ts
|
|
715
717
|
declare function getSelectorDependencyKeys(store: Store, key: string): (AtomKey<unknown> | ReadonlySelectorKey<unknown> | SelectorKey<unknown>)[];
|
|
@@ -718,23 +720,23 @@ declare function getSelectorDependencyKeys(store: Store, key: string): (AtomKey<
|
|
|
718
720
|
declare function registerSelector(store: Store, selectorType: `readonly_held_selector` | `readonly_pure_selector` | `writable_held_selector` | `writable_pure_selector`, selectorKey: string, covered: Set<string>): WriterToolkit;
|
|
719
721
|
//#endregion
|
|
720
722
|
//#region src/internal/selector/trace-selector-atoms.d.ts
|
|
721
|
-
declare function traceRootSelectorAtoms(store: Store, selectorKey: string, covered?: Set<string>): Map<string, Atom<
|
|
723
|
+
declare function traceRootSelectorAtoms(store: Store, selectorKey: string, covered?: Set<string>): Map<string, Atom<any, any>>;
|
|
722
724
|
//#endregion
|
|
723
725
|
//#region src/internal/selector/update-selector-atoms.d.ts
|
|
724
|
-
declare function updateSelectorAtoms(store: Store, selectorType: `readonly_held_selector` | `readonly_pure_selector` | `writable_held_selector` | `writable_pure_selector`, selectorKey: string, dependency: ReadableToken<unknown>, covered: Set<string>): void;
|
|
726
|
+
declare function updateSelectorAtoms(store: Store, selectorType: `readonly_held_selector` | `readonly_pure_selector` | `writable_held_selector` | `writable_pure_selector`, selectorKey: string, dependency: ReadableToken<unknown, any, unknown>, covered: Set<string>): void;
|
|
725
727
|
//#endregion
|
|
726
728
|
//#region src/internal/set-state/become.d.ts
|
|
727
729
|
declare function become<T>(nextVersionOfThing: T | ((prev: T) => T), originalThing: T): T;
|
|
728
730
|
//#endregion
|
|
729
731
|
//#region src/internal/set-state/evict-downstream.d.ts
|
|
730
|
-
declare function evictDownstreamFromAtom(store: Store, atom: Atom<any>): void;
|
|
732
|
+
declare function evictDownstreamFromAtom(store: Store, atom: Atom<any, any>): void;
|
|
731
733
|
declare function evictDownstreamFromSelector(store: Store, selectorKey: string): void;
|
|
732
734
|
//#endregion
|
|
733
735
|
//#region src/internal/set-state/reset-in-store.d.ts
|
|
734
736
|
declare const RESET_STATE: unique symbol;
|
|
735
|
-
declare function resetInStore(store: Store, token: WritableToken<any>): void;
|
|
736
|
-
declare function resetInStore<K extends Canonical>(store: Store, token: WritableFamilyToken<any, K>, key: K): void;
|
|
737
|
-
declare function resetInStore<T, K extends Canonical, Key extends K>(store: Store, ...params: [token: WritableFamilyToken<T, K>, key: Key] | [token: WritableToken<T>]): void;
|
|
737
|
+
declare function resetInStore(store: Store, token: WritableToken<any, any, any>): void;
|
|
738
|
+
declare function resetInStore<K extends Canonical>(store: Store, token: WritableFamilyToken<any, K, any>, key: K): void;
|
|
739
|
+
declare function resetInStore<T, K extends Canonical, Key extends K>(store: Store, ...params: [token: WritableFamilyToken<T, K, any>, key: Key] | [token: WritableToken<T, any, any>]): void;
|
|
738
740
|
//#endregion
|
|
739
741
|
//#region src/internal/set-state/operate-on-store.d.ts
|
|
740
742
|
type ProtoUpdate<T> = {
|
|
@@ -743,22 +745,22 @@ type ProtoUpdate<T> = {
|
|
|
743
745
|
};
|
|
744
746
|
//#endregion
|
|
745
747
|
//#region src/internal/set-state/reset-atom-or-selector.d.ts
|
|
746
|
-
declare function resetAtomOrSelector<T>(target: Store & {
|
|
748
|
+
declare function resetAtomOrSelector<T, E>(target: Store & {
|
|
747
749
|
operation: OpenOperation;
|
|
748
|
-
}, state: WritableState<T>): ProtoUpdate<T>;
|
|
750
|
+
}, state: WritableState<T, E>): ProtoUpdate<E | T>;
|
|
749
751
|
//#endregion
|
|
750
752
|
//#region src/internal/set-state/set-atom-or-selector.d.ts
|
|
751
753
|
declare const setAtomOrSelector: <T>(target: Store & {
|
|
752
754
|
operation: OpenOperation;
|
|
753
|
-
}, state: WritableState<T>, value: T | ((oldValue: T) => T)) => ProtoUpdate<T>;
|
|
755
|
+
}, state: WritableState<T, any>, value: T | ((oldValue: T) => T)) => ProtoUpdate<T>;
|
|
754
756
|
//#endregion
|
|
755
757
|
//#region src/internal/set-state/set-into-store.d.ts
|
|
756
|
-
declare function setIntoStore<T, New extends T>(store: Store, token: WritableToken<T>, value: New | typeof RESET_STATE | ((oldValue: T) => New)): void;
|
|
757
|
-
declare function setIntoStore<T, K extends Canonical, New extends T, Key extends K>(store: Store, token: WritableFamilyToken<T, K>, key: Key, value: New | typeof RESET_STATE | ((oldValue: T) => New)): void;
|
|
758
|
-
declare function setIntoStore<T, K extends Canonical, New extends T, Key extends K>(store: Store, ...params: [token: WritableFamilyToken<T, K>, key: Key, value: New | typeof RESET_STATE | ((oldValue: T) => New)] | [token: WritableToken<T>, value: New | typeof RESET_STATE | ((oldValue: T) => New)]): void;
|
|
758
|
+
declare function setIntoStore<T, New extends T, E>(store: Store, token: WritableToken<T, any, E>, value: New | typeof RESET_STATE | ((oldValue: T) => New)): void;
|
|
759
|
+
declare function setIntoStore<T, K extends Canonical, New extends T, Key extends K, E>(store: Store, token: WritableFamilyToken<T, K, E>, key: Key, value: New | typeof RESET_STATE | ((oldValue: T) => New)): void;
|
|
760
|
+
declare function setIntoStore<T, K extends Canonical, New extends T, Key extends K, E>(store: Store, ...params: [token: WritableFamilyToken<T, K, E>, key: Key, value: New | typeof RESET_STATE | ((oldValue: T) => New)] | [token: WritableToken<T, any, E>, value: New | typeof RESET_STATE | ((oldValue: T) => New)]): void;
|
|
759
761
|
//#endregion
|
|
760
762
|
//#region src/internal/subscribe/recall-state.d.ts
|
|
761
|
-
declare const recallState: <T>(store: Store, state: ReadableState<T>) => T;
|
|
763
|
+
declare const recallState: <T, E>(store: Store, state: ReadableState<T, E>) => T;
|
|
762
764
|
//#endregion
|
|
763
765
|
//#region src/internal/subscribe/subscribe-in-store.d.ts
|
|
764
766
|
declare function subscribeInStore<T>(store: Store, token: ReadableToken<T>, handleUpdate: UpdateHandler<T>, key?: string): () => void;
|
|
@@ -767,10 +769,10 @@ declare function subscribeInStore<M extends TimelineManageable>(store: Store, to
|
|
|
767
769
|
declare function subscribeInStore<M extends TimelineManageable>(store: Store, token: ReadableToken<any> | TimelineToken<M> | TransactionToken<any>, handleUpdate: TransactionUpdateHandler<any> | UpdateHandler<any> | ((update: TimelineEvent<M> | `redo` | `undo`) => void), key?: string): () => void;
|
|
768
770
|
//#endregion
|
|
769
771
|
//#region src/internal/subscribe/subscribe-to-root-atoms.d.ts
|
|
770
|
-
declare const subscribeToRootDependency: (target: Store, selector: Selector<any>, atom: Atom<any>) => (() => void);
|
|
772
|
+
declare const subscribeToRootDependency: (target: Store, selector: Selector<any, any>, atom: Atom<any, any>) => (() => void);
|
|
771
773
|
//#endregion
|
|
772
774
|
//#region src/internal/subscribe/subscribe-to-state.d.ts
|
|
773
|
-
declare function subscribeToState<T>(store: Store, token: ReadableToken<T>, key: string, handleUpdate: UpdateHandler<T>): () => void;
|
|
775
|
+
declare function subscribeToState<T, E>(store: Store, token: ReadableToken<T, any, E>, key: string, handleUpdate: UpdateHandler<E | T>): () => void;
|
|
774
776
|
//#endregion
|
|
775
777
|
//#region src/internal/subscribe/subscribe-to-timeline.d.ts
|
|
776
778
|
declare const subscribeToTimeline: <ManagedAtom extends TimelineManageable>(store: Store, token: TimelineToken<ManagedAtom>, key: string, handleUpdate: (update: TimelineEvent<any> | `redo` | `undo`) => void) => (() => void);
|
|
@@ -785,18 +787,19 @@ type AtomIOState = {
|
|
|
785
787
|
install: (store: RootStore) => void;
|
|
786
788
|
subject: Subject<StateUpdate<any>>;
|
|
787
789
|
};
|
|
788
|
-
type RegularAtom<T> = Flat<AtomIOState & {
|
|
790
|
+
type RegularAtom<T, E> = Flat<AtomIOState & {
|
|
789
791
|
type: `atom`;
|
|
790
792
|
default: T | (() => T);
|
|
791
793
|
cleanup?: () => void;
|
|
792
794
|
internalRoles?: internalRole[];
|
|
795
|
+
catch?: readonly Ctor<E>[];
|
|
793
796
|
}>;
|
|
794
797
|
type MutableAtom<T extends Transceiver<any, any, any>> = Flat<AtomIOState & {
|
|
795
798
|
type: `mutable_atom`;
|
|
796
799
|
class: ConstructorOf<T>;
|
|
797
800
|
cleanup?: () => void;
|
|
798
801
|
}>;
|
|
799
|
-
type Atom<T> = RegularAtom<T> | (T extends Transceiver<any, any, any> ? MutableAtom<T> : never);
|
|
802
|
+
type Atom<T, E> = RegularAtom<T, E> | (T extends Transceiver<any, any, any> ? MutableAtom<T> : never);
|
|
800
803
|
type WritableHeldSelector<T> = Flat<AtomIOState & {
|
|
801
804
|
type: `writable_held_selector`;
|
|
802
805
|
const: T;
|
|
@@ -808,67 +811,75 @@ type ReadonlyHeldSelector<T> = Flat<AtomIOState & {
|
|
|
808
811
|
const: T;
|
|
809
812
|
getFrom: (target: Store) => T;
|
|
810
813
|
}>;
|
|
811
|
-
type WritablePureSelector<T> = Flat<AtomIOState & {
|
|
814
|
+
type WritablePureSelector<T, E> = Flat<AtomIOState & {
|
|
812
815
|
type: `writable_pure_selector`;
|
|
813
|
-
getFrom: (target: Store) => T;
|
|
816
|
+
getFrom: (target: Store) => E | T;
|
|
814
817
|
setSelf: (newValue: T) => void;
|
|
818
|
+
catch?: readonly Ctor<E>[];
|
|
815
819
|
}>;
|
|
816
|
-
type ReadonlyPureSelector<T> = Flat<AtomIOState & {
|
|
820
|
+
type ReadonlyPureSelector<T, E> = Flat<AtomIOState & {
|
|
817
821
|
type: `readonly_pure_selector`;
|
|
818
|
-
getFrom: (target: Store) => T;
|
|
822
|
+
getFrom: (target: Store) => E | T;
|
|
823
|
+
catch?: readonly Ctor<E>[];
|
|
819
824
|
}>;
|
|
820
|
-
type ReadonlySelector<T> = ReadonlyHeldSelector<T> | ReadonlyPureSelector<T>;
|
|
821
|
-
type WritableSelector<T> = WritableHeldSelector<T> | WritablePureSelector<T>;
|
|
825
|
+
type ReadonlySelector<T, E> = ReadonlyHeldSelector<T> | ReadonlyPureSelector<T, E>;
|
|
826
|
+
type WritableSelector<T, E> = WritableHeldSelector<T> | WritablePureSelector<T, E>;
|
|
822
827
|
type HeldSelector<T> = ReadonlyHeldSelector<T> | WritableHeldSelector<T>;
|
|
823
|
-
type PureSelector<T> = ReadonlyPureSelector<T> | WritablePureSelector<T>;
|
|
824
|
-
type Selector<T> = ReadonlyHeldSelector<T> | ReadonlyPureSelector<T> | WritableHeldSelector<T> | WritablePureSelector<T>;
|
|
825
|
-
type WritableState<T> = Atom<T> | WritableSelector<T>;
|
|
826
|
-
type ReadableState<T> = Atom<T> | Selector<T>;
|
|
827
|
-
type RegularAtomFamily<T, K extends Canonical> = Flat<RegularAtomFamilyToken<T, K> & {
|
|
828
|
+
type PureSelector<T, E> = ReadonlyPureSelector<T, E> | WritablePureSelector<T, E>;
|
|
829
|
+
type Selector<T, E> = ReadonlyHeldSelector<T> | ReadonlyPureSelector<T, E> | WritableHeldSelector<T> | WritablePureSelector<T, E>;
|
|
830
|
+
type WritableState<T, E> = Atom<T, E> | WritableSelector<T, E>;
|
|
831
|
+
type ReadableState<T, E> = Atom<T, E> | Selector<T, E>;
|
|
832
|
+
type RegularAtomFamily<T, K extends Canonical, E = never> = Flat<RegularAtomFamilyToken<T, K, E> & {
|
|
833
|
+
create: <Key extends K>(key: Key) => RegularAtomToken<T, Key, E>;
|
|
828
834
|
default: T | ((key: K) => T);
|
|
829
835
|
install: (store: RootStore) => void;
|
|
830
836
|
internalRoles: string[] | undefined;
|
|
831
|
-
subject: Subject<StateLifecycleEvent<RegularAtomToken<T>>>;
|
|
832
|
-
}
|
|
837
|
+
subject: Subject<StateLifecycleEvent<RegularAtomToken<T, K, E>>>;
|
|
838
|
+
}>;
|
|
833
839
|
type MutableAtomFamily<T extends Transceiver<any, any, any>, K extends Canonical> = Flat<MutableAtomFamilyToken<T, K> & {
|
|
840
|
+
create: <Key extends K>(key: Key) => MutableAtomToken<T, Key>;
|
|
834
841
|
class: ConstructorOf<T>;
|
|
835
842
|
install: (store: RootStore) => void;
|
|
836
843
|
internalRoles: string[] | undefined;
|
|
837
844
|
subject: Subject<StateLifecycleEvent<MutableAtomToken<T>>>;
|
|
838
|
-
}
|
|
839
|
-
type AtomFamily<T, K extends Canonical
|
|
840
|
-
type WritablePureSelectorFamily<T, K extends Canonical> = Flat<WritablePureSelectorFamilyToken<T, K> & {
|
|
845
|
+
}>;
|
|
846
|
+
type AtomFamily<T, K extends Canonical, E> = MutableAtomFamily<T extends Transceiver<any, any, any> ? T : never, K> | RegularAtomFamily<T, K, E>;
|
|
847
|
+
type WritablePureSelectorFamily<T, K extends Canonical, E> = Flat<WritablePureSelectorFamilyToken<T, K, E> & {
|
|
848
|
+
create: <Key extends K>(key: Key) => WritablePureSelectorToken<T, Key, E>;
|
|
841
849
|
default: (key: K) => T;
|
|
842
850
|
install: (store: RootStore) => void;
|
|
843
851
|
internalRoles: string[] | undefined;
|
|
844
|
-
subject: Subject<StateLifecycleEvent<WritablePureSelectorToken<T>>>;
|
|
845
|
-
}
|
|
852
|
+
subject: Subject<StateLifecycleEvent<WritablePureSelectorToken<T, K, E>>>;
|
|
853
|
+
}>;
|
|
846
854
|
type WritableHeldSelectorFamily<T, K extends Canonical> = Flat<WritableHeldSelectorFamilyToken<T, K> & {
|
|
855
|
+
create: <Key extends K>(key: Key) => WritableHeldSelectorToken<T, Key>;
|
|
847
856
|
default: (key: K) => T;
|
|
848
857
|
install: (store: RootStore) => void;
|
|
849
858
|
internalRoles: string[] | undefined;
|
|
850
|
-
subject: Subject<StateLifecycleEvent<WritableHeldSelectorToken<T>>>;
|
|
851
|
-
}
|
|
852
|
-
type ReadonlyPureSelectorFamily<T, K extends Canonical> = Flat<ReadonlyPureSelectorFamilyToken<T, K> & {
|
|
859
|
+
subject: Subject<StateLifecycleEvent<WritableHeldSelectorToken<T, K>>>;
|
|
860
|
+
}>;
|
|
861
|
+
type ReadonlyPureSelectorFamily<T, K extends Canonical, E> = Flat<ReadonlyPureSelectorFamilyToken<T, K, E> & {
|
|
862
|
+
create: <Key extends K>(key: Key) => ReadonlyPureSelectorToken<T, Key, E>;
|
|
853
863
|
default: (key: K) => T;
|
|
854
864
|
install: (store: RootStore) => void;
|
|
855
865
|
internalRoles: string[] | undefined;
|
|
856
|
-
subject: Subject<StateLifecycleEvent<ReadonlyPureSelectorToken<T>>>;
|
|
857
|
-
}
|
|
866
|
+
subject: Subject<StateLifecycleEvent<ReadonlyPureSelectorToken<T, K, E>>>;
|
|
867
|
+
}>;
|
|
858
868
|
type ReadonlyHeldSelectorFamily<T, K extends Canonical> = Flat<ReadonlyHeldSelectorFamilyToken<T, K> & {
|
|
869
|
+
create: <Key extends K>(key: Key) => ReadonlyHeldSelectorToken<T, Key>;
|
|
859
870
|
default: (key: K) => T;
|
|
860
871
|
install: (store: RootStore) => void;
|
|
861
872
|
internalRoles: string[] | undefined;
|
|
862
873
|
subject: Subject<StateLifecycleEvent<ReadonlyHeldSelectorToken<T>>>;
|
|
863
|
-
}
|
|
864
|
-
type PureSelectorFamily<T, K extends Canonical> = ReadonlyPureSelectorFamily<T, K> | WritablePureSelectorFamily<T, K>;
|
|
874
|
+
}>;
|
|
875
|
+
type PureSelectorFamily<T, K extends Canonical, E> = ReadonlyPureSelectorFamily<T, K, E> | WritablePureSelectorFamily<T, K, E>;
|
|
865
876
|
type HeldSelectorFamily<T, K extends Canonical> = ReadonlyHeldSelectorFamily<T, K> | WritableHeldSelectorFamily<T, K>;
|
|
866
|
-
type ReadonlySelectorFamily<T, K extends Canonical> = ReadonlyHeldSelectorFamily<T, K> | ReadonlyPureSelectorFamily<T, K>;
|
|
867
|
-
type WritableSelectorFamily<T, K extends Canonical> = WritableHeldSelectorFamily<T, K> | WritablePureSelectorFamily<T, K>;
|
|
868
|
-
type SelectorFamily<T, K extends Canonical> = HeldSelectorFamily<T, K> | PureSelectorFamily<T, K>;
|
|
869
|
-
type WritableFamily<T, K extends Canonical> = AtomFamily<T, K> |
|
|
870
|
-
type ReadableFamily<T, K extends Canonical> = AtomFamily<T, K> | SelectorFamily<T, K>;
|
|
871
|
-
type AtomIOInternalResource = ReadableFamily<any, any> | ReadableState<any> | Timeline<any> | Transaction<any>;
|
|
872
|
-
//#endregion
|
|
873
|
-
export { AsJSON, Atom, AtomFamily, AtomIOInternalResource, AtomIOState, AtomKey, BaseExternalStoreConfiguration, COUNTERFEIT, ChildStore, CircularBuffer, ConstructorOf, Count, Each, Empty, EnvironmentData, ExternalStoreConfiguration, ExternalStoreWithContentConfiguration, FAMILY_MEMBER_TOKEN_TYPES, FamilyTracker, Flat, Fn, Future, HeldSelector, HeldSelectorFamily, IMPLICIT, INTERNAL_ROLES, Join, JoinStateFamilies, Junction, JunctionAdvancedConfiguration, JunctionEntries, JunctionEntriesBase, JunctionJSON, JunctionOverlay, JunctionSchema, JunctionSchemaBase, Lineage, MapOverlay, Molecule, MutableAtom, MutableAtomFamily, NotFoundError, OpenOperation, OperationProgress, PureSelector, PureSelectorFamily, RESET_STATE, ReadableFamily, ReadableState, ReadonlyHeldSelector, ReadonlyHeldSelectorFamily, ReadonlyPureSelector, ReadonlyPureSelectorFamily, ReadonlySelector, ReadonlySelectorFamily, ReadonlySelectorKey, Refinement, RegularAtom, RegularAtomFamily, RelationsOverlay, ReservedIntrospectionKey, RootStore, Selector, SelectorFamily, SelectorKey, SetOverlay, SignalFrom, StateKey, StatefulSubject, Store, StoreEventCarrier, Subject, TRANSACTION_PHASES, Timeline, Tracker, Transaction, TransactionEpoch, TransactionPhase, TransactionProgress, Transceiver, TransceiverConstructor, TransceiverMode, WritableFamily, WritableHeldSelector, WritableHeldSelectorFamily, WritablePureSelector, WritablePureSelectorFamily, WritableSelector, WritableSelectorFamily, WritableState, abortTransaction, actUponStore, allocateIntoStore, applyTransaction, arbitrary, assignTransactionToContinuity, become, buildTransaction, capitalize, claimWithinStore, clearStore, closeOperation, createClaimTX, createDeallocateTX, createJoin, createMutableAtom, createMutableAtomFamily, createReadonlyHeldSelector, createReadonlyPureSelector, createReadonlyPureSelectorFamily, createRegularAtom, createRegularAtomFamily, createSelectorFamily, createStandaloneSelector, createTimeline, createTransaction, createWritableHeldSelector, createWritablePureSelector, createWritablePureSelectorFamily, deallocateFromStore, deposit, disposeAtom, disposeFromStore, disposeSelector, editRelationsInStore, eldest, evictCachedValue, evictDownstreamFromAtom, evictDownstreamFromSelector, findInStore, findRelationsInStore, fuseWithinStore, getContinuityKey, getEnvironmentData, getEpochNumberOfAction, getEpochNumberOfContinuity, getFromStore, getInternalRelationsFromStore, getJoin, getJsonFamily, getJsonToken, getSelectorDependencyKeys, getTrace, getUpdateFamily, getUpdateToken, hasRole, ingestAtomUpdateEvent, ingestCreationEvent, ingestDisposalEvent, ingestMoleculeCreationEvent, ingestMoleculeDisposalEvent, ingestMoleculeTransferEvent, ingestSelectorUpdateEvent, ingestTransactionOutcomeEvent, installIntoStore, internalRole, isAtomKey, isChildStore, isDone, isReadonlySelectorKey, isReservedIntrospectionKey, isRootStore, isSelectorKey, isStateKey, isTransceiver, makeRootMoleculeInStore, markDone, mint, newest, openOperation, readFromCache, readOrComputeValue, recallState, registerSelector, resetAtomOrSelector, resetInStore, seekInStore, setAtomOrSelector, setEpochNumberOfAction, setEpochNumberOfContinuity, setIntoStore, subscribeInStore, subscribeToRootDependency, subscribeToState, subscribeToTimeline, subscribeToTransaction, timeTravel, traceRootSelectorAtoms, updateSelectorAtoms, withdraw, writeToCache };
|
|
877
|
+
type ReadonlySelectorFamily<T, K extends Canonical, E> = ReadonlyHeldSelectorFamily<T, K> | ReadonlyPureSelectorFamily<T, K, E>;
|
|
878
|
+
type WritableSelectorFamily<T, K extends Canonical, E> = WritableHeldSelectorFamily<T, K> | WritablePureSelectorFamily<T, K, E>;
|
|
879
|
+
type SelectorFamily<T, K extends Canonical, E> = HeldSelectorFamily<T, K> | PureSelectorFamily<T, K, E>;
|
|
880
|
+
type WritableFamily<T, K extends Canonical, E> = AtomFamily<T, K, E> | WritableSelectorFamily<T, K, E>;
|
|
881
|
+
type ReadableFamily<T, K extends Canonical, E> = AtomFamily<T, K, E> | SelectorFamily<T, K, E>;
|
|
882
|
+
type AtomIOInternalResource = ReadableFamily<any, any, any> | ReadableState<any, any> | Timeline<any> | Transaction<any>;
|
|
883
|
+
//#endregion
|
|
884
|
+
export { AsJSON, Atom, AtomFamily, AtomIOInternalResource, AtomIOState, AtomKey, BaseExternalStoreConfiguration, COUNTERFEIT, ChildStore, CircularBuffer, ConstructorOf, Count, Ctor, Each, Empty, EnvironmentData, ExternalStoreConfiguration, ExternalStoreWithContentConfiguration, FAMILY_MEMBER_TOKEN_TYPES, FamilyTracker, Flat, Fn, Future, HeldSelector, HeldSelectorFamily, IMPLICIT, INTERNAL_ROLES, Join, JoinStateFamilies, Junction, JunctionAdvancedConfiguration, JunctionEntries, JunctionEntriesBase, JunctionJSON, JunctionOverlay, JunctionSchema, JunctionSchemaBase, Lineage, MapOverlay, Molecule, MutableAtom, MutableAtomFamily, NotFoundError, OpenOperation, OperationProgress, PureSelector, PureSelectorFamily, RESET_STATE, ReadableFamily, ReadableState, ReadonlyHeldSelector, ReadonlyHeldSelectorFamily, ReadonlyPureSelector, ReadonlyPureSelectorFamily, ReadonlySelector, ReadonlySelectorFamily, ReadonlySelectorKey, Refinement, RegularAtom, RegularAtomFamily, RelationsOverlay, ReservedIntrospectionKey, RootStore, Selector, SelectorFamily, SelectorKey, SetOverlay, SignalFrom, StateKey, StatefulSubject, Store, StoreEventCarrier, Subject, TRANSACTION_PHASES, Timeline, Tracker, Transaction, TransactionEpoch, TransactionPhase, TransactionProgress, Transceiver, TransceiverConstructor, TransceiverMode, WritableFamily, WritableHeldSelector, WritableHeldSelectorFamily, WritablePureSelector, WritablePureSelectorFamily, WritableSelector, WritableSelectorFamily, WritableState, abortTransaction, actUponStore, allocateIntoStore, applyTransaction, arbitrary, assignTransactionToContinuity, become, buildTransaction, capitalize, claimWithinStore, clearStore, closeOperation, createClaimTX, createDeallocateTX, createJoin, createMutableAtom, createMutableAtomFamily, createReadonlyHeldSelector, createReadonlyPureSelector, createReadonlyPureSelectorFamily, createRegularAtom, createRegularAtomFamily, createSelectorFamily, createStandaloneSelector, createTimeline, createTransaction, createWritableHeldSelector, createWritablePureSelector, createWritablePureSelectorFamily, deallocateFromStore, deposit, disposeAtom, disposeFromStore, disposeSelector, editRelationsInStore, eldest, evictCachedValue, evictDownstreamFromAtom, evictDownstreamFromSelector, findInStore, findRelationsInStore, fuseWithinStore, getContinuityKey, getEnvironmentData, getEpochNumberOfAction, getEpochNumberOfContinuity, getFromStore, getInternalRelationsFromStore, getJoin, getJsonFamily, getJsonToken, getSelectorDependencyKeys, getTrace, getUpdateFamily, getUpdateToken, hasRole, ingestAtomUpdateEvent, ingestCreationEvent, ingestDisposalEvent, ingestMoleculeCreationEvent, ingestMoleculeDisposalEvent, ingestMoleculeTransferEvent, ingestSelectorUpdateEvent, ingestTransactionOutcomeEvent, installIntoStore, internalRole, isAtomKey, isChildStore, isDone, isReadonlySelectorKey, isReservedIntrospectionKey, isRootStore, isSelectorKey, isStateKey, isTransceiver, makeRootMoleculeInStore, markDone, mint, newest, openOperation, readFromCache, readOrComputeValue, recallState, registerSelector, resetAtomOrSelector, resetInStore, seekInStore, setAtomOrSelector, setEpochNumberOfAction, setEpochNumberOfContinuity, setIntoStore, subscribeInStore, subscribeToRootDependency, subscribeToState, subscribeToTimeline, subscribeToTransaction, timeTravel, traceRootSelectorAtoms, updateSelectorAtoms, withdraw, writeToCache };
|
|
874
885
|
//# sourceMappingURL=index.d.ts.map
|