atom.io 0.33.3 → 0.33.5
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 +0 -3
- package/dist/data/index.d.ts.map +1 -1
- package/dist/eslint-plugin/index.d.ts +0 -5
- package/dist/eslint-plugin/index.d.ts.map +1 -1
- package/dist/internal/index.d.ts +19 -100
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +33 -33
- package/dist/internal/index.js.map +1 -1
- package/dist/introspection/index.d.ts +1 -8
- package/dist/introspection/index.d.ts.map +1 -1
- package/dist/introspection/index.js +8 -8
- package/dist/introspection/index.js.map +1 -1
- package/dist/json/index.d.ts +0 -4
- package/dist/json/index.d.ts.map +1 -1
- package/dist/main/index.d.ts +5 -28
- package/dist/main/index.d.ts.map +1 -1
- package/dist/main/index.js.map +1 -1
- package/dist/react/index.d.ts +0 -5
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react-devtools/index.css.map +1 -1
- package/dist/react-devtools/index.d.ts +0 -11
- package/dist/react-devtools/index.d.ts.map +1 -1
- package/dist/react-devtools/index.js +5 -2
- package/dist/react-devtools/index.js.map +1 -1
- package/dist/realtime/index.d.ts +1 -2
- package/dist/realtime/index.d.ts.map +1 -1
- package/dist/realtime-client/index.d.ts +3 -14
- package/dist/realtime-client/index.d.ts.map +1 -1
- package/dist/realtime-react/index.d.ts +0 -11
- package/dist/realtime-react/index.d.ts.map +1 -1
- package/dist/realtime-react/index.js +1 -1
- package/dist/realtime-react/index.js.map +1 -1
- package/dist/realtime-server/index.d.ts +25 -15
- package/dist/realtime-server/index.d.ts.map +1 -1
- package/dist/realtime-server/index.js +5 -5
- package/dist/realtime-server/index.js.map +1 -1
- package/dist/realtime-testing/index.d.ts +0 -1
- package/dist/transceivers/set-rtx/index.d.ts +0 -1
- package/dist/web/index.d.ts +0 -1
- package/package.json +26 -26
- package/src/internal/store/withdraw.ts +13 -13
- package/src/main/logger.ts +2 -2
- package/src/react-devtools/AtomIODevtools.tsx +2 -2
package/dist/internal/index.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ declare class CircularBuffer<T> {
|
|
|
14
14
|
add(item: T): void;
|
|
15
15
|
copy(): CircularBuffer<T>;
|
|
16
16
|
}
|
|
17
|
-
|
|
18
17
|
//#endregion
|
|
19
18
|
//#region src/internal/store/counterfeit.d.ts
|
|
20
19
|
declare const FAMILY_MEMBER_TOKEN_TYPES: {
|
|
@@ -34,7 +33,6 @@ declare function counterfeit<T, K extends Canonical, Key extends K>(token: Reado
|
|
|
34
33
|
declare function counterfeit<T, K extends Canonical, Key extends K>(token: SelectorFamilyToken<T, K>, key: Key): SelectorToken<T>;
|
|
35
34
|
declare function counterfeit<T, K extends Canonical, Key extends K>(token: WritableFamilyToken<T, K>, key: Key): WritableToken<T>;
|
|
36
35
|
declare function counterfeit<T, K extends Canonical, Key extends K>(token: ReadableFamilyToken<T, K>, key: Key): ReadableToken<T>;
|
|
37
|
-
|
|
38
36
|
//#endregion
|
|
39
37
|
//#region src/internal/utility-types.d.ts
|
|
40
38
|
type Func = (...parameters: any[]) => any;
|
|
@@ -42,7 +40,6 @@ type Flat<R extends { [K in PropertyKey]: any }> = { [K in keyof R]: R[K] };
|
|
|
42
40
|
type Count<N extends number, A extends any[] = []> = [...A, any][`length`] extends N ? A[`length`] : A[`length`] | Count<N, [...A, any]>;
|
|
43
41
|
type Each<E extends any[]> = { [P in Count<E[`length`]>]: E[P] };
|
|
44
42
|
type Refinement<A, B extends A> = (a: A) => a is B;
|
|
45
|
-
|
|
46
43
|
//#endregion
|
|
47
44
|
//#region src/internal/junction.d.ts
|
|
48
45
|
type JunctionEntriesBase<AType extends string, BType extends string, Content extends Json.Object | null> = {
|
|
@@ -123,23 +120,18 @@ declare class Junction<const ASide extends string, const AType extends string, c
|
|
|
123
120
|
has(a: AType, b?: BType): boolean;
|
|
124
121
|
has(b: BType, a?: AType): boolean;
|
|
125
122
|
}
|
|
126
|
-
|
|
127
123
|
//#endregion
|
|
128
124
|
//#region src/internal/transaction/abort-transaction.d.ts
|
|
129
125
|
declare const abortTransaction: (store: Store) => void;
|
|
130
|
-
|
|
131
126
|
//#endregion
|
|
132
127
|
//#region src/internal/transaction/act-upon-store.d.ts
|
|
133
128
|
declare function actUponStore<F extends Func>(store: Store, token: TransactionToken<F>, id: string): (...parameters: Parameters<F>) => ReturnType<F>;
|
|
134
|
-
|
|
135
129
|
//#endregion
|
|
136
130
|
//#region src/internal/transaction/apply-transaction.d.ts
|
|
137
131
|
declare const applyTransaction: <F extends Func>(output: ReturnType<F>, store: Store) => void;
|
|
138
|
-
|
|
139
132
|
//#endregion
|
|
140
133
|
//#region src/internal/transaction/assign-transaction-to-continuity.d.ts
|
|
141
134
|
declare function assignTransactionToContinuity(store: Store, continuityKey: string, transactionKey: string): void;
|
|
142
|
-
|
|
143
135
|
//#endregion
|
|
144
136
|
//#region src/internal/transaction/is-root-store.d.ts
|
|
145
137
|
interface RootStore extends Store {
|
|
@@ -154,11 +146,9 @@ interface ChildStore extends Store {
|
|
|
154
146
|
}
|
|
155
147
|
declare function isRootStore(store: Store): store is RootStore;
|
|
156
148
|
declare function isChildStore(store: Store): store is ChildStore;
|
|
157
|
-
|
|
158
149
|
//#endregion
|
|
159
150
|
//#region src/internal/transaction/build-transaction.d.ts
|
|
160
151
|
declare const buildTransaction: (store: Store, key: string, params: any[], id: string) => ChildStore;
|
|
161
|
-
|
|
162
152
|
//#endregion
|
|
163
153
|
//#region src/internal/subject.d.ts
|
|
164
154
|
declare class Subject<T> {
|
|
@@ -173,7 +163,6 @@ declare class StatefulSubject<T> extends Subject<T> {
|
|
|
173
163
|
constructor(initialState: T);
|
|
174
164
|
next(value: T): void;
|
|
175
165
|
}
|
|
176
|
-
|
|
177
166
|
//#endregion
|
|
178
167
|
//#region src/internal/transaction/create-transaction.d.ts
|
|
179
168
|
type Transaction<F extends Func> = {
|
|
@@ -184,18 +173,15 @@ type Transaction<F extends Func> = {
|
|
|
184
173
|
run: (parameters: Parameters<F>, id?: string) => ReturnType<F>;
|
|
185
174
|
};
|
|
186
175
|
declare function createTransaction<F extends Func>(store: Store, options: TransactionOptions<F>): TransactionToken<F>;
|
|
187
|
-
|
|
188
176
|
//#endregion
|
|
189
177
|
//#region src/internal/transaction/get-epoch-number.d.ts
|
|
190
178
|
declare function getContinuityKey(store: RootStore, transactionKey: string): string | undefined;
|
|
191
179
|
declare function getEpochNumberOfContinuity(store: RootStore, continuityKey: string): number | undefined;
|
|
192
180
|
declare function getEpochNumberOfAction(store: Store, transactionKey: string): number | undefined;
|
|
193
|
-
|
|
194
181
|
//#endregion
|
|
195
182
|
//#region src/internal/transaction/set-epoch-number.d.ts
|
|
196
183
|
declare function setEpochNumberOfContinuity(store: Store, continuityKey: string, newEpoch: number): void;
|
|
197
184
|
declare function setEpochNumberOfAction(store: Store, transactionKey: string, newEpoch: number): void;
|
|
198
|
-
|
|
199
185
|
//#endregion
|
|
200
186
|
//#region src/internal/transaction/index.d.ts
|
|
201
187
|
declare const TRANSACTION_PHASES: readonly ["idle", "building", "applying"];
|
|
@@ -209,7 +195,6 @@ type TransactionEpoch = {
|
|
|
209
195
|
epoch: Map<string, number>;
|
|
210
196
|
actionContinuities: Junction<`continuity`, string, `action`, string>;
|
|
211
197
|
};
|
|
212
|
-
|
|
213
198
|
//#endregion
|
|
214
199
|
//#region src/internal/store/deposit.d.ts
|
|
215
200
|
declare function deposit<T>(state: RegularAtom<T>): RegularAtomToken<T>;
|
|
@@ -231,19 +216,15 @@ declare function deposit<T>(state: ReadableFamily<T, any>): ReadableFamilyToken<
|
|
|
231
216
|
declare function deposit<T extends Func>(state: Transaction<T>): TransactionToken<T>;
|
|
232
217
|
declare function deposit<M extends TimelineManageable>(state: Timeline<M>): TimelineToken<M>;
|
|
233
218
|
declare function deposit(resource: AtomIOInternalResource): AtomIOToken;
|
|
234
|
-
|
|
235
219
|
//#endregion
|
|
236
220
|
//#region src/internal/join/edit-relations-in-store.d.ts
|
|
237
221
|
declare function editRelationsInStore<ASide extends string, AType extends string, BSide extends string, BType extends string, Cardinality extends `1:1` | `1:n` | `n:n`, Content extends Json.Object | null>(token: JoinToken<ASide, AType, BSide, BType, Cardinality, Content>, change: (relations: Junction<ASide, AType, BSide, BType, Content>) => void, store: Store): void;
|
|
238
|
-
|
|
239
222
|
//#endregion
|
|
240
223
|
//#region src/internal/join/find-relations-in-store.d.ts
|
|
241
224
|
declare function findRelationsInStore<ASide extends string, AType extends string, BSide extends string, BType extends string, Cardinality extends `1:1` | `1:n` | `n:n`, Content extends Json.Object | null>(token: JoinToken<ASide, AType, BSide, BType, Cardinality, Content>, key: AType | BType, store: Store): JoinStates<ASide, AType, BSide, BType, Cardinality, Content>;
|
|
242
|
-
|
|
243
225
|
//#endregion
|
|
244
226
|
//#region src/internal/join/get-internal-relations-from-store.d.ts
|
|
245
227
|
declare function getInternalRelationsFromStore(token: JoinToken<any, any, any, any, any, any>, store: Store): MutableAtomFamilyToken<SetRTX<string>, SetRTXJson<string>, string>;
|
|
246
|
-
|
|
247
228
|
//#endregion
|
|
248
229
|
//#region src/internal/molecule.d.ts
|
|
249
230
|
type Molecule<K extends Canonical> = {
|
|
@@ -256,7 +237,6 @@ declare function allocateIntoStore<H extends Hierarchy, V extends Vassal<H>, A e
|
|
|
256
237
|
declare function fuseWithinStore<H extends Hierarchy, C extends CompoundFrom<H>, T extends (C extends CompoundTypedKey<infer t, any, any> ? t : never), A extends (C extends CompoundTypedKey<any, infer a, any> ? a : never), B extends (C extends CompoundTypedKey<any, any, infer b> ? b : never)>(store: Store, type: T, sideA: SingularTypedKey<A>, sideB: SingularTypedKey<B>): Claim<CompoundTypedKey<T, A, B>>;
|
|
257
238
|
declare function deallocateFromStore<H extends Hierarchy, V extends Vassal<H>>(store: Store, claim: Claim<V>): void;
|
|
258
239
|
declare function claimWithinStore<H extends Hierarchy, V extends Exclude<Vassal<H>, CompoundTypedKey>, A extends Above<V, H>>(store: Store, newProvenance: A, claim: Claim<V>, exclusive?: `exclusive`): Claim<V>;
|
|
259
|
-
|
|
260
240
|
//#endregion
|
|
261
241
|
//#region src/internal/join/join-internal.d.ts
|
|
262
242
|
type JoinStateFamilies<ASide extends string, AType extends string, BSide extends string, BType extends string, Cardinality extends `1:1` | `1:n` | `n:n`, Content extends Json.Object | null> = Cardinality extends `1:1` ? (Content extends Json.Object ? { readonly [A in ASide as `${A}EntryOf${Capitalize<BSide>}`]: ReadonlyPureSelectorFamilyToken<[AType, Content] | null, BType> } & { readonly [B in BSide as `${B}EntryOf${Capitalize<ASide>}`]: ReadonlyPureSelectorFamilyToken<[BType, Content] | null, AType> } : {}) & { readonly [A in ASide as `${A}KeyOf${Capitalize<BSide>}`]: ReadonlyPureSelectorFamilyToken<AType | null, BType> } & { readonly [B in BSide as `${B}KeyOf${Capitalize<ASide>}`]: ReadonlyPureSelectorFamilyToken<BType | null, AType> } : Cardinality extends `1:n` ? (Content extends Json.Object ? { readonly [A in ASide as `${A}EntryOf${Capitalize<BSide>}`]: ReadonlyPureSelectorFamilyToken<[AType, Content] | null, BType> } & { readonly [B in BSide as `${B}EntriesOf${Capitalize<ASide>}`]: ReadonlyPureSelectorFamilyToken<[BType, Content][], AType> } : {}) & { readonly [A in ASide as `${A}KeyOf${Capitalize<BSide>}`]: ReadonlyPureSelectorFamilyToken<AType | null, BType> } & { readonly [B in BSide as `${B}KeysOf${Capitalize<ASide>}`]: ReadonlyPureSelectorFamilyToken<BType[], AType> } : Cardinality extends `n:n` ? (Content extends Json.Object ? { readonly [A in ASide as `${A}EntriesOf${Capitalize<BSide>}`]: ReadonlyPureSelectorFamilyToken<[AType, Content][], BType> } & { readonly [B in BSide as `${B}EntriesOf${Capitalize<ASide>}`]: ReadonlyPureSelectorFamilyToken<[BType, Content][], AType> } : {}) & { readonly [A in ASide as `${A}KeysOf${Capitalize<BSide>}`]: ReadonlyPureSelectorFamilyToken<AType[], BType> } & { readonly [B in BSide as `${B}KeysOf${Capitalize<ASide>}`]: ReadonlyPureSelectorFamilyToken<BType[], AType> } : never;
|
|
@@ -276,19 +256,17 @@ declare class Join<const ASide extends string, const AType extends string, const
|
|
|
276
256
|
[Symbol.dispose](): void;
|
|
277
257
|
constructor(options: JoinOptions<ASide, AType, BSide, BType, Cardinality, Content>, defaultContent: Content | undefined, store?: Store);
|
|
278
258
|
}
|
|
279
|
-
|
|
280
259
|
//#endregion
|
|
281
260
|
//#region src/internal/join/get-join.d.ts
|
|
282
261
|
declare function getJoin<ASide extends string, AType extends string, BSide extends string, BType extends string, Cardinality extends `1:1` | `1:n` | `n:n`, Content extends Json.Object | null>(token: JoinToken<ASide, AType, BSide, BType, Cardinality, Content>, store: Store): Join<ASide, AType, BSide, BType, Cardinality, Content>;
|
|
283
|
-
|
|
284
262
|
//#endregion
|
|
285
263
|
//#region src/internal/lineage.d.ts
|
|
264
|
+
/* eslint-disable @typescript-eslint/no-redundant-type-constituents */
|
|
286
265
|
interface Lineage {
|
|
287
266
|
parent: typeof this | null;
|
|
288
267
|
child: typeof this | null;
|
|
289
268
|
}
|
|
290
269
|
declare function newest<T extends Lineage>(scion: T): T;
|
|
291
|
-
|
|
292
270
|
//#endregion
|
|
293
271
|
//#region src/internal/operation.d.ts
|
|
294
272
|
type OperationProgress = {
|
|
@@ -304,7 +282,6 @@ declare const openOperation: (store: Store, token: WritableToken<any>) => number
|
|
|
304
282
|
declare const closeOperation: (store: Store) => void;
|
|
305
283
|
declare const isDone: (store: Store, key: string) => boolean;
|
|
306
284
|
declare const markDone: (store: Store, key: string) => void;
|
|
307
|
-
|
|
308
285
|
//#endregion
|
|
309
286
|
//#region src/internal/timeline/create-timeline.d.ts
|
|
310
287
|
type TimelineAtomUpdate<ManagedAtom extends TimelineManageable> = Flat<StateUpdate<TokenType<ManagedAtom>> & {
|
|
@@ -350,11 +327,9 @@ type Timeline<ManagedAtom extends TimelineManageable> = {
|
|
|
350
327
|
subscriptions: Map<string, () => void>;
|
|
351
328
|
};
|
|
352
329
|
declare function createTimeline<ManagedAtom extends TimelineManageable>(store: Store, options: TimelineOptions<ManagedAtom>, data?: Timeline<ManagedAtom>): TimelineToken<ManagedAtom>;
|
|
353
|
-
|
|
354
330
|
//#endregion
|
|
355
331
|
//#region src/internal/timeline/time-travel.d.ts
|
|
356
332
|
declare const timeTravel: (store: Store, action: `redo` | `undo`, token: TimelineToken<any>) => void;
|
|
357
|
-
|
|
358
333
|
//#endregion
|
|
359
334
|
//#region src/internal/store/store.d.ts
|
|
360
335
|
declare class Store implements Lineage {
|
|
@@ -419,7 +394,6 @@ declare const IMPLICIT: {
|
|
|
419
394
|
readonly STORE: Store;
|
|
420
395
|
};
|
|
421
396
|
declare const clearStore: (store: Store) => void;
|
|
422
|
-
|
|
423
397
|
//#endregion
|
|
424
398
|
//#region src/internal/store/withdraw.d.ts
|
|
425
399
|
declare function withdraw<T>(store: Store, token: RegularAtomToken<T>): RegularAtom<T>;
|
|
@@ -438,24 +412,23 @@ declare function withdraw<T>(store: Store, token: WritableToken<T>): WritableSta
|
|
|
438
412
|
declare function withdraw<T>(store: Store, token: ReadableToken<T>): ReadableState<T>;
|
|
439
413
|
declare function withdraw<T, K extends Canonical>(store: Store, token: RegularAtomFamilyToken<T, K>): RegularAtomFamily<T, K>;
|
|
440
414
|
declare function withdraw<T extends Transceiver<any>, J extends Json.Serializable, K extends Canonical>(store: Store, token: MutableAtomFamilyToken<T, J, K>): MutableAtomFamily<T, J, K>;
|
|
441
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: AtomFamilyToken<T>): AtomFamily<T,
|
|
442
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: ReadonlyHeldSelectorFamilyToken<T, K>): ReadonlyHeldSelectorFamily<T,
|
|
443
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: WritableHeldSelectorFamilyToken<T, K>): WritableHeldSelectorFamily<T,
|
|
444
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: ReadonlyPureSelectorFamilyToken<T, K>): ReadonlyPureSelectorFamily<T,
|
|
445
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: WritablePureSelectorFamilyToken<T, K>): WritablePureSelectorFamily<T,
|
|
446
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: ReadonlySelectorFamilyToken<T, K>): ReadonlySelectorFamily<T,
|
|
447
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: WritableSelectorFamilyToken<T, K>): WritableSelectorFamily<T,
|
|
448
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: HeldSelectorFamilyToken<T, K>): HeldSelectorFamily<T,
|
|
449
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: PureSelectorFamilyToken<T, K>): PureSelectorFamily<T,
|
|
450
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: SelectorFamilyToken<T, K>): SelectorFamily<T,
|
|
451
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: ReadableFamilyToken<T, K>): ReadableFamily<T,
|
|
452
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: WritableFamilyToken<T, K>): WritableFamily<T,
|
|
415
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: AtomFamilyToken<T, K>): AtomFamily<T, K>;
|
|
416
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: ReadonlyHeldSelectorFamilyToken<T, K>): ReadonlyHeldSelectorFamily<T, K>;
|
|
417
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: WritableHeldSelectorFamilyToken<T, K>): WritableHeldSelectorFamily<T, K>;
|
|
418
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: ReadonlyPureSelectorFamilyToken<T, K>): ReadonlyPureSelectorFamily<T, K>;
|
|
419
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: WritablePureSelectorFamilyToken<T, K>): WritablePureSelectorFamily<T, K>;
|
|
420
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: ReadonlySelectorFamilyToken<T, K>): ReadonlySelectorFamily<T, K>;
|
|
421
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: WritableSelectorFamilyToken<T, K>): WritableSelectorFamily<T, K>;
|
|
422
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: HeldSelectorFamilyToken<T, K>): HeldSelectorFamily<T, K>;
|
|
423
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: PureSelectorFamilyToken<T, K>): PureSelectorFamily<T, K>;
|
|
424
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: SelectorFamilyToken<T, K>): SelectorFamily<T, K>;
|
|
425
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: ReadableFamilyToken<T, K>): ReadableFamily<T, K>;
|
|
426
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: WritableFamilyToken<T, K>): WritableFamily<T, K>;
|
|
453
427
|
declare function withdraw<T extends Func>(store: Store, token: TransactionToken<T>): Transaction<T extends Func ? T : never>;
|
|
454
428
|
declare function withdraw<T>(store: Store, token: TimelineToken<T>): Timeline<T extends TimelineManageable ? T : never>;
|
|
455
429
|
declare function withdraw<T>(store: Store, token: WritableToken<T>): WritableState<T>;
|
|
456
430
|
declare function withdraw<T>(store: Store, token: ReadableToken<T>): ReadableState<T>;
|
|
457
431
|
declare function withdraw(store: Store, token: AtomIOToken): AtomIOInternalResource;
|
|
458
|
-
|
|
459
432
|
//#endregion
|
|
460
433
|
//#region src/internal/mutable/transceiver.d.ts
|
|
461
434
|
interface Transceiver<S extends Json.Serializable> {
|
|
@@ -468,31 +441,24 @@ interface Transceiver<S extends Json.Serializable> {
|
|
|
468
441
|
declare function isTransceiver(value: unknown): value is Transceiver<Json.Serializable>;
|
|
469
442
|
type TransceiverMode = `playback` | `record` | `transaction`;
|
|
470
443
|
type Signal$1<TVR extends Transceiver<any>> = TVR extends Transceiver<infer S> ? S : never;
|
|
471
|
-
|
|
472
444
|
//#endregion
|
|
473
445
|
//#region src/internal/mutable/create-mutable-atom.d.ts
|
|
474
446
|
declare function createMutableAtom<T extends Transceiver<any>, J extends Json.Serializable>(store: Store, options: MutableAtomOptions<T, J>, family: FamilyMetadata | undefined): MutableAtomToken<T, J>;
|
|
475
|
-
|
|
476
447
|
//#endregion
|
|
477
448
|
//#region src/internal/mutable/create-mutable-atom-family.d.ts
|
|
478
449
|
declare function createMutableAtomFamily<T extends Transceiver<any>, J extends Json.Serializable, K extends Canonical>(store: Store, options: MutableAtomFamilyOptions<T, J, K>, internalRoles?: string[]): MutableAtomFamilyToken<T, J, K>;
|
|
479
|
-
|
|
480
450
|
//#endregion
|
|
481
451
|
//#region src/internal/mutable/get-json-family.d.ts
|
|
482
452
|
declare const getJsonFamily: <Core extends Transceiver<Json.Serializable>, SerializableCore extends Json.Serializable, Key extends Canonical>(mutableAtomFamily: MutableAtomFamilyToken<Core, SerializableCore, Key>, store: Store) => WritablePureSelectorFamily<SerializableCore, Key>;
|
|
483
|
-
|
|
484
453
|
//#endregion
|
|
485
454
|
//#region src/internal/mutable/get-json-token.d.ts
|
|
486
455
|
declare const getJsonToken: <Core extends Transceiver<any>, SerializableCore extends Json.Serializable>(store: Store, mutableAtomToken: MutableAtomToken<Core, SerializableCore>) => WritablePureSelectorToken<SerializableCore>;
|
|
487
|
-
|
|
488
456
|
//#endregion
|
|
489
457
|
//#region src/internal/mutable/get-update-family.d.ts
|
|
490
458
|
declare const getUpdateFamily: <Core extends Transceiver<Json.Serializable>, SerializableCore extends Json.Serializable, Key extends string>(mutableAtomFamily: MutableAtomFamilyToken<Core, SerializableCore, Key>, store: Store) => AtomFamily<Signal$1<Core>, Key>;
|
|
491
|
-
|
|
492
459
|
//#endregion
|
|
493
460
|
//#region src/internal/mutable/get-update-token.d.ts
|
|
494
461
|
declare const getUpdateToken: <Core extends Transceiver<any>, SerializableCore extends Json.Serializable>(mutableAtomToken: MutableAtomToken<Core, SerializableCore>) => RegularAtomToken<Signal$1<Core>>;
|
|
495
|
-
|
|
496
462
|
//#endregion
|
|
497
463
|
//#region src/internal/mutable/tracker.d.ts
|
|
498
464
|
/**
|
|
@@ -511,7 +477,6 @@ declare class Tracker<Mutable extends Transceiver<any>> {
|
|
|
511
477
|
[Symbol.dispose]: () => void;
|
|
512
478
|
constructor(mutableState: MutableAtomToken<Mutable, Json.Serializable>, store: Store);
|
|
513
479
|
}
|
|
514
|
-
|
|
515
480
|
//#endregion
|
|
516
481
|
//#region src/internal/mutable/tracker-family.d.ts
|
|
517
482
|
declare class FamilyTracker<Core extends Transceiver<any>, FamilyMemberKey extends Canonical> {
|
|
@@ -520,30 +485,24 @@ declare class FamilyTracker<Core extends Transceiver<any>, FamilyMemberKey exten
|
|
|
520
485
|
readonly mutableAtoms: MutableAtomFamily<Core, any, FamilyMemberKey>;
|
|
521
486
|
constructor(mutableAtoms: MutableAtomFamily<Core, any, FamilyMemberKey>, store: Store);
|
|
522
487
|
}
|
|
523
|
-
|
|
524
488
|
//#endregion
|
|
525
489
|
//#region src/internal/arbitrary.d.ts
|
|
526
490
|
declare function arbitrary(random?: () => number): string;
|
|
527
|
-
|
|
528
491
|
//#endregion
|
|
529
492
|
//#region src/internal/atom/create-regular-atom.d.ts
|
|
530
493
|
declare function createRegularAtom<T>(store: Store, options: RegularAtomOptions<T>, family: FamilyMetadata | undefined): RegularAtomToken<T>;
|
|
531
|
-
|
|
532
494
|
//#endregion
|
|
533
495
|
//#region src/internal/atom/create-standalone-atom.d.ts
|
|
534
496
|
declare function createStandaloneAtom<T>(store: Store, options: RegularAtomOptions<T>): RegularAtomToken<T>;
|
|
535
497
|
declare function createStandaloneAtom<T extends Transceiver<any>, J extends Json.Serializable>(store: Store, options: MutableAtomOptions<T, J>): MutableAtomToken<T, J>;
|
|
536
|
-
|
|
537
498
|
//#endregion
|
|
538
499
|
//#region src/internal/atom/dispose-atom.d.ts
|
|
539
500
|
declare function disposeAtom(store: Store, atomToken: AtomToken<unknown>): void;
|
|
540
|
-
|
|
541
501
|
//#endregion
|
|
542
502
|
//#region src/internal/atom/is-default.d.ts
|
|
543
503
|
declare const isAtomDefault: (store: Store, key: string) => boolean;
|
|
544
504
|
declare const markAtomAsDefault: (store: Store, key: string) => void;
|
|
545
505
|
declare const markAtomAsNotDefault: (store: Store, key: string) => void;
|
|
546
|
-
|
|
547
506
|
//#endregion
|
|
548
507
|
//#region src/internal/future.d.ts
|
|
549
508
|
/**
|
|
@@ -565,47 +524,38 @@ declare class Future<T> extends Promise<T> {
|
|
|
565
524
|
private fail;
|
|
566
525
|
use(value: Promise<T> | T): void;
|
|
567
526
|
}
|
|
568
|
-
|
|
569
527
|
//#endregion
|
|
570
528
|
//#region src/internal/caching.d.ts
|
|
571
529
|
declare function cacheValue<T>(store: Store, key: string, value: T, subject: Subject<StateUpdate<unknown>>): T;
|
|
572
530
|
declare function cacheValue<T extends Promise<any>>(store: Store, key: string, value: T, subject: Subject<StateUpdate<unknown>>): Future<T>;
|
|
573
531
|
declare const readCachedValue: <T>(token: ReadableState<any>, target: Store) => T;
|
|
574
532
|
declare const evictCachedValue: (key: string, target: Store) => void;
|
|
575
|
-
|
|
576
533
|
//#endregion
|
|
577
534
|
//#region src/internal/capitalize.d.ts
|
|
578
535
|
declare function capitalize<S extends string>(string: S): Capitalize<S>;
|
|
579
|
-
|
|
580
536
|
//#endregion
|
|
581
537
|
//#region src/internal/families/create-atom-family.d.ts
|
|
582
538
|
declare function createAtomFamily<T extends Transceiver<any>, J extends Json.Serializable, K extends Canonical>(store: Store, options: MutableAtomFamilyOptions<T, J, K>): MutableAtomFamilyToken<T, J, K>;
|
|
583
539
|
declare function createAtomFamily<T, K extends Canonical>(store: Store, options: RegularAtomFamilyOptions<T, K>): RegularAtomFamilyToken<T, K>;
|
|
584
|
-
|
|
585
540
|
//#endregion
|
|
586
541
|
//#region src/internal/families/create-readonly-pure-selector-family.d.ts
|
|
587
542
|
declare function createReadonlyPureSelectorFamily<T, K extends Canonical>(store: Store, options: ReadonlyPureSelectorFamilyOptions<T, K>, internalRoles?: string[]): ReadonlyPureSelectorFamilyToken<T, K>;
|
|
588
|
-
|
|
589
543
|
//#endregion
|
|
590
544
|
//#region src/internal/families/create-regular-atom-family.d.ts
|
|
591
545
|
declare function createRegularAtomFamily<T, K extends Canonical>(store: Store, options: RegularAtomFamilyOptions<T, K>, internalRoles?: string[]): RegularAtomFamilyToken<T, K>;
|
|
592
|
-
|
|
593
546
|
//#endregion
|
|
594
547
|
//#region src/internal/families/create-selector-family.d.ts
|
|
595
548
|
declare function createSelectorFamily<T extends object, K extends Canonical>(store: Store, options: WritableHeldSelectorFamilyOptions<T, K>): WritableHeldSelectorFamilyToken<T, K>;
|
|
596
549
|
declare function createSelectorFamily<T extends object, K extends Canonical>(store: Store, options: ReadonlyHeldSelectorFamilyOptions<T, K>): ReadonlyHeldSelectorFamilyToken<T, K>;
|
|
597
550
|
declare function createSelectorFamily<T, K extends Canonical>(store: Store, options: WritablePureSelectorFamilyOptions<T, K>): WritablePureSelectorFamilyToken<T, K>;
|
|
598
551
|
declare function createSelectorFamily<T, K extends Canonical>(store: Store, options: ReadonlyPureSelectorFamilyOptions<T, K>): ReadonlyPureSelectorFamilyToken<T, K>;
|
|
599
|
-
|
|
600
552
|
//#endregion
|
|
601
553
|
//#region src/internal/families/create-writable-pure-selector-family.d.ts
|
|
602
554
|
declare function createWritablePureSelectorFamily<T, K extends Canonical>(store: Store, options: WritablePureSelectorFamilyOptions<T, K>, internalRoles?: string[]): WritablePureSelectorFamilyToken<T, K>;
|
|
603
|
-
|
|
604
555
|
//#endregion
|
|
605
556
|
//#region src/internal/families/dispose-from-store.d.ts
|
|
606
557
|
declare function disposeFromStore(store: Store, token: ReadableToken<any>): void;
|
|
607
558
|
declare function disposeFromStore<K extends Canonical>(store: Store, token: ReadableFamilyToken<any, K>, key: K): void;
|
|
608
|
-
|
|
609
559
|
//#endregion
|
|
610
560
|
//#region src/internal/families/find-in-store.d.ts
|
|
611
561
|
declare function findInStore<T extends Transceiver<any>, J extends Json.Serializable, K extends Canonical, Key extends K>(store: Store, token: MutableAtomFamilyToken<T, J, K>, key: Key): MutableAtomToken<T, J, K>;
|
|
@@ -616,7 +566,6 @@ declare function findInStore<T, K extends Canonical, Key extends K>(store: Store
|
|
|
616
566
|
declare function findInStore<T, K extends Canonical, Key extends K>(store: Store, token: SelectorFamilyToken<T, K>, key: Key): SelectorToken<T, K>;
|
|
617
567
|
declare function findInStore<T, K extends Canonical, Key extends K>(store: Store, token: WritableFamilyToken<T, K>, key: Key): WritableToken<T, K>;
|
|
618
568
|
declare function findInStore<T, K extends Canonical, Key extends K>(store: Store, token: ReadableFamilyToken<T, K>, key: Key): ReadableToken<T, K>;
|
|
619
|
-
|
|
620
569
|
//#endregion
|
|
621
570
|
//#region src/internal/families/init-family-member.d.ts
|
|
622
571
|
declare function initFamilyMemberInStore<T extends Transceiver<any>, J extends Json.Serializable, K extends Canonical, Key extends K>(store: Store, token: MutableAtomFamilyToken<T, J, K>, key: Key): MutableAtomToken<T, J, K>;
|
|
@@ -627,7 +576,6 @@ declare function initFamilyMemberInStore<T, K extends Canonical, Key extends K>(
|
|
|
627
576
|
declare function initFamilyMemberInStore<T, K extends Canonical, Key extends K>(store: Store, token: SelectorFamilyToken<T, K>, key: Key): SelectorToken<T, K>;
|
|
628
577
|
declare function initFamilyMemberInStore<T, K extends Canonical, Key extends K>(store: Store, token: WritableFamilyToken<T, K>, key: Key): WritableToken<T, K>;
|
|
629
578
|
declare function initFamilyMemberInStore<T, K extends Canonical, Key extends K>(store: Store, token: ReadableFamilyToken<T, K>, key: Key): ReadableToken<T, K>;
|
|
630
|
-
|
|
631
579
|
//#endregion
|
|
632
580
|
//#region src/internal/families/seek-in-store.d.ts
|
|
633
581
|
declare function seekInStore<T extends Transceiver<any>, J extends Json.Serializable, K extends Canonical, Key extends K>(store: Store, token: MutableAtomFamilyToken<T, J, K>, key: Key): MutableAtomToken<T, J, K> | undefined;
|
|
@@ -638,31 +586,25 @@ declare function seekInStore<T, K extends Canonical, Key extends K>(store: Store
|
|
|
638
586
|
declare function seekInStore<T, K extends Canonical, Key extends K>(store: Store, token: SelectorFamilyToken<T, K>, key: Key): SelectorToken<T, K> | undefined;
|
|
639
587
|
declare function seekInStore<T, K extends Canonical, Key extends K>(store: Store, token: WritableFamilyToken<T, K>, key: Key): WritableToken<T, K> | undefined;
|
|
640
588
|
declare function seekInStore<T, K extends Canonical, Key extends K>(store: Store, token: ReadableFamilyToken<T, K>, key: Key): ReadableToken<T, K> | undefined;
|
|
641
|
-
|
|
642
589
|
//#endregion
|
|
643
590
|
//#region src/internal/get-environment-data.d.ts
|
|
644
591
|
type EnvironmentData = {
|
|
645
592
|
store: Store;
|
|
646
593
|
};
|
|
647
594
|
declare function getEnvironmentData(store: Store): EnvironmentData;
|
|
648
|
-
|
|
649
595
|
//#endregion
|
|
650
596
|
//#region src/internal/get-state/get-from-store.d.ts
|
|
651
597
|
declare function getFromStore<T>(store: Store, token: ReadableToken<T>): T;
|
|
652
598
|
declare function getFromStore<T, K extends Canonical>(store: Store, token: ReadableFamilyToken<T, K>, key: K): T;
|
|
653
|
-
|
|
654
599
|
//#endregion
|
|
655
600
|
//#region src/internal/get-state/read-or-compute-value.d.ts
|
|
656
601
|
declare const readOrComputeValue: <T>(target: Store, state: ReadableState<T>) => T;
|
|
657
|
-
|
|
658
602
|
//#endregion
|
|
659
603
|
//#region src/internal/get-trace.d.ts
|
|
660
604
|
declare function getTrace(error: Error): string;
|
|
661
|
-
|
|
662
605
|
//#endregion
|
|
663
606
|
//#region src/internal/ingest-updates/ingest-atom-update.d.ts
|
|
664
607
|
declare function ingestAtomUpdate(applying: `newValue` | `oldValue`, atomUpdate: KeyedStateUpdate<any>, store: Store): void;
|
|
665
|
-
|
|
666
608
|
//#endregion
|
|
667
609
|
//#region src/internal/ingest-updates/ingest-creation-disposal.d.ts
|
|
668
610
|
declare function ingestCreationEvent(update: StateCreation<any>, applying: `newValue` | `oldValue`, store: Store): void;
|
|
@@ -670,15 +612,12 @@ declare function ingestDisposalEvent(update: StateDisposal<ReadableToken<any>>,
|
|
|
670
612
|
declare function ingestMoleculeCreationEvent(update: MoleculeCreation, applying: `newValue` | `oldValue`, store: Store): void;
|
|
671
613
|
declare function ingestMoleculeDisposalEvent(update: MoleculeDisposal, applying: `newValue` | `oldValue`, store: Store): void;
|
|
672
614
|
declare function ingestMoleculeTransferEvent(update: MoleculeTransfer, applying: `newValue` | `oldValue`, store: Store): void;
|
|
673
|
-
|
|
674
615
|
//#endregion
|
|
675
616
|
//#region src/internal/ingest-updates/ingest-selector-update.d.ts
|
|
676
617
|
declare function ingestSelectorUpdate(applying: `newValue` | `oldValue`, selectorUpdate: TimelineSelectorUpdate<any>, store: Store): void;
|
|
677
|
-
|
|
678
618
|
//#endregion
|
|
679
619
|
//#region src/internal/ingest-updates/ingest-transaction-update.d.ts
|
|
680
620
|
declare function ingestTransactionUpdate(applying: `newValue` | `oldValue`, transactionUpdate: TransactionUpdate<any>, store: Store): void;
|
|
681
|
-
|
|
682
621
|
//#endregion
|
|
683
622
|
//#region src/internal/install-into-store.d.ts
|
|
684
623
|
/**
|
|
@@ -690,7 +629,6 @@ declare function ingestTransactionUpdate(applying: `newValue` | `oldValue`, tran
|
|
|
690
629
|
*
|
|
691
630
|
*/
|
|
692
631
|
declare function installIntoStore(tokens: AtomIOToken[], target: Store, source: Store): void;
|
|
693
|
-
|
|
694
632
|
//#endregion
|
|
695
633
|
//#region src/internal/keys.d.ts
|
|
696
634
|
type AtomKey<T> = string & {
|
|
@@ -710,7 +648,6 @@ declare const isSelectorKey: (store: Store, key: string) => key is SelectorKey<u
|
|
|
710
648
|
declare const isReadonlySelectorKey: (store: Store, key: string) => key is ReadonlySelectorKey<unknown>;
|
|
711
649
|
type StateKey<T> = AtomKey<T> | ReadonlySelectorKey<T> | SelectorKey<T>;
|
|
712
650
|
declare const isStateKey: (store: Store, key: string) => key is StateKey<unknown>;
|
|
713
|
-
|
|
714
651
|
//#endregion
|
|
715
652
|
//#region src/internal/lazy-map.d.ts
|
|
716
653
|
declare class LazyMap<K, V> extends Map<K, V> {
|
|
@@ -723,107 +660,84 @@ declare class LazyMap<K, V> extends Map<K, V> {
|
|
|
723
660
|
has(key: K): boolean;
|
|
724
661
|
delete(key: K): boolean;
|
|
725
662
|
}
|
|
726
|
-
|
|
727
663
|
//#endregion
|
|
728
664
|
//#region src/internal/not-found-error.d.ts
|
|
729
665
|
declare class NotFoundError extends Error {
|
|
730
666
|
constructor(token: AtomIOToken, store: Store);
|
|
731
667
|
}
|
|
732
|
-
|
|
733
668
|
//#endregion
|
|
734
669
|
//#region src/internal/pretty-print.d.ts
|
|
735
670
|
declare function prettyPrintTokenType(token: AtomIOToken): string;
|
|
736
|
-
|
|
737
671
|
//#endregion
|
|
738
672
|
//#region src/internal/reserved-keys.d.ts
|
|
739
673
|
type ReservedIntrospectionKey = `🔍 ${string}`;
|
|
740
674
|
declare function isReservedIntrospectionKey(value: string): value is ReservedIntrospectionKey;
|
|
741
|
-
|
|
742
675
|
//#endregion
|
|
743
676
|
//#region src/internal/selector/create-readonly-held-selector.d.ts
|
|
744
677
|
declare const createReadonlyHeldSelector: <T extends object>(store: Store, options: ReadonlyHeldSelectorOptions<T>, family: FamilyMetadata | undefined) => ReadonlyHeldSelectorToken<T>;
|
|
745
|
-
|
|
746
678
|
//#endregion
|
|
747
679
|
//#region src/internal/selector/create-readonly-pure-selector.d.ts
|
|
748
680
|
declare const createReadonlyPureSelector: <T>(store: Store, options: ReadonlyPureSelectorOptions<T>, family: FamilyMetadata | undefined) => ReadonlyPureSelectorToken<T>;
|
|
749
|
-
|
|
750
681
|
//#endregion
|
|
751
682
|
//#region src/internal/selector/create-standalone-selector.d.ts
|
|
752
683
|
declare function createStandaloneSelector<T extends object>(store: Store, options: WritableHeldSelectorOptions<T>): WritableHeldSelectorToken<T>;
|
|
753
684
|
declare function createStandaloneSelector<T extends object>(store: Store, options: ReadonlyHeldSelectorOptions<T>): ReadonlyHeldSelectorToken<T>;
|
|
754
685
|
declare function createStandaloneSelector<T>(store: Store, options: WritablePureSelectorOptions<T>): WritablePureSelectorToken<T>;
|
|
755
686
|
declare function createStandaloneSelector<T>(store: Store, options: ReadonlyPureSelectorOptions<T>): ReadonlyPureSelectorToken<T>;
|
|
756
|
-
|
|
757
687
|
//#endregion
|
|
758
688
|
//#region src/internal/selector/create-writable-held-selector.d.ts
|
|
759
689
|
declare const createWritableHeldSelector: <T extends object>(store: Store, options: WritableHeldSelectorOptions<T>, family: FamilyMetadata | undefined) => WritableHeldSelectorToken<T>;
|
|
760
|
-
|
|
761
690
|
//#endregion
|
|
762
691
|
//#region src/internal/selector/create-writable-pure-selector.d.ts
|
|
763
692
|
declare const createWritablePureSelector: <T>(store: Store, options: WritablePureSelectorOptions<T>, family: FamilyMetadata | undefined) => WritablePureSelectorToken<T>;
|
|
764
|
-
|
|
765
693
|
//#endregion
|
|
766
694
|
//#region src/internal/selector/dispose-selector.d.ts
|
|
767
695
|
declare function disposeSelector(store: Store, selectorToken: SelectorToken<unknown>): void;
|
|
768
|
-
|
|
769
696
|
//#endregion
|
|
770
697
|
//#region src/internal/selector/get-selector-dependency-keys.d.ts
|
|
771
698
|
declare const getSelectorDependencyKeys: (store: Store, key: string) => (AtomKey<unknown> | ReadonlySelectorKey<unknown> | SelectorKey<unknown>)[];
|
|
772
|
-
|
|
773
699
|
//#endregion
|
|
774
700
|
//#region src/internal/selector/register-selector.d.ts
|
|
775
701
|
declare const registerSelector: (store: Store, selectorType: `readonly_held_selector` | `readonly_pure_selector` | `writable_held_selector` | `writable_pure_selector`, selectorKey: string, covered: Set<string>) => SetterToolkit;
|
|
776
|
-
|
|
777
702
|
//#endregion
|
|
778
703
|
//#region src/internal/selector/trace-selector-atoms.d.ts
|
|
779
704
|
declare const traceSelectorAtoms: (store: Store, directDependencyKey: StateKey<unknown>, covered: Set<string>) => AtomKey<unknown>[];
|
|
780
705
|
declare const traceAllSelectorAtoms: (selector: Selector<any>, store: Store) => AtomKey<unknown>[];
|
|
781
|
-
|
|
782
706
|
//#endregion
|
|
783
707
|
//#region src/internal/selector/update-selector-atoms.d.ts
|
|
784
708
|
declare const updateSelectorAtoms: (store: Store, selectorType: `readonly_held_selector` | `readonly_pure_selector` | `writable_held_selector` | `writable_pure_selector`, selectorKey: string, dependency: ReadonlyPureSelectorToken<unknown> | WritableToken<unknown>, covered: Set<string>) => void;
|
|
785
|
-
|
|
786
709
|
//#endregion
|
|
787
710
|
//#region src/internal/set-state/become.d.ts
|
|
788
711
|
type Modify<T> = (thing: T) => T;
|
|
789
712
|
declare const become: <T>(nextVersionOfThing: Modify<T> | T) => (originalThing: T) => T;
|
|
790
|
-
|
|
791
713
|
//#endregion
|
|
792
714
|
//#region src/internal/set-state/set-atom-or-selector.d.ts
|
|
793
715
|
declare const setAtomOrSelector: <T>(store: Store, state: WritableState<T>, value: T | ((oldValue: T) => T)) => void;
|
|
794
|
-
|
|
795
716
|
//#endregion
|
|
796
717
|
//#region src/internal/set-state/set-into-store.d.ts
|
|
797
718
|
declare function setIntoStore<T, New extends T>(store: Store, token: WritableToken<T>, value: New | ((oldValue: T) => New)): void;
|
|
798
719
|
declare function setIntoStore<T, K extends Canonical, New extends T>(store: Store, token: WritableFamilyToken<T, K>, key: K, value: New | ((oldValue: T) => New)): void;
|
|
799
|
-
|
|
800
720
|
//#endregion
|
|
801
721
|
//#region src/internal/subscribe/recall-state.d.ts
|
|
802
722
|
declare const recallState: <T>(store: Store, state: ReadableState<T>) => T;
|
|
803
|
-
|
|
804
723
|
//#endregion
|
|
805
724
|
//#region src/internal/subscribe/subscribe-in-store.d.ts
|
|
806
725
|
declare function subscribeInStore<T>(store: Store$1, token: ReadableToken<T>, handleUpdate: UpdateHandler<T>, key?: string): () => void;
|
|
807
726
|
declare function subscribeInStore<F extends Func$1>(store: Store$1, token: TransactionToken<F>, handleUpdate: TransactionUpdateHandler<F>, key?: string): () => void;
|
|
808
727
|
declare function subscribeInStore<M extends TimelineManageable>(store: Store$1, token: TimelineToken<M>, handleUpdate: (update: TimelineUpdate<M> | `redo` | `undo`) => void, key?: string): () => void;
|
|
809
728
|
declare function subscribeInStore<M extends TimelineManageable>(store: Store$1, token: ReadableToken<any> | TimelineToken<M> | TransactionToken<any>, handleUpdate: TransactionUpdateHandler<any> | UpdateHandler<any> | ((update: TimelineUpdate<M> | `redo` | `undo`) => void), key?: string): () => void;
|
|
810
|
-
|
|
811
729
|
//#endregion
|
|
812
730
|
//#region src/internal/subscribe/subscribe-to-root-atoms.d.ts
|
|
813
731
|
declare const subscribeToRootAtoms: <T>(store: Store, selector: Selector<T>) => (() => void)[];
|
|
814
|
-
|
|
815
732
|
//#endregion
|
|
816
733
|
//#region src/internal/subscribe/subscribe-to-state.d.ts
|
|
817
734
|
declare function subscribeToState<T>(store: Store, token: ReadableToken<T>, key: string, handleUpdate: UpdateHandler<T>): () => void;
|
|
818
|
-
|
|
819
735
|
//#endregion
|
|
820
736
|
//#region src/internal/subscribe/subscribe-to-timeline.d.ts
|
|
821
737
|
declare const subscribeToTimeline: <ManagedAtom extends TimelineManageable>(store: Store, token: TimelineToken<ManagedAtom>, key: string, handleUpdate: (update: TimelineUpdate<any> | `redo` | `undo`) => void) => (() => void);
|
|
822
|
-
|
|
823
738
|
//#endregion
|
|
824
739
|
//#region src/internal/subscribe/subscribe-to-transaction.d.ts
|
|
825
740
|
declare const subscribeToTransaction: <F extends Func>(store: Store, token: TransactionToken<F>, key: string, handleUpdate: TransactionUpdateHandler<F>) => (() => void);
|
|
826
|
-
|
|
827
741
|
//#endregion
|
|
828
742
|
//#region src/internal/index.d.ts
|
|
829
743
|
type AtomIOState = {
|
|
@@ -873,12 +787,14 @@ type PureSelector<T> = ReadonlyPureSelector<T> | WritablePureSelector<T>;
|
|
|
873
787
|
type Selector<T> = ReadonlyHeldSelector<T> | ReadonlyPureSelector<T> | WritableHeldSelector<T> | WritablePureSelector<T>;
|
|
874
788
|
type WritableState<T> = Atom<T> | WritableSelector<T>;
|
|
875
789
|
type ReadableState<T> = Atom<T> | Selector<T>;
|
|
790
|
+
// biome-ignore format: intersection
|
|
876
791
|
type RegularAtomFamily<T, K extends Canonical> = RegularAtomFamilyToken<T, K> & {
|
|
877
792
|
(key: K): RegularAtomToken<T>;
|
|
878
793
|
subject: Subject<StateCreation<AtomToken<T>> | StateDisposal<AtomToken<T>>>;
|
|
879
794
|
install: (store: Store) => void;
|
|
880
795
|
internalRoles: string[] | undefined;
|
|
881
796
|
};
|
|
797
|
+
// biome-ignore format: intersection
|
|
882
798
|
type MutableAtomFamily<T extends Transceiver<any>, J extends Json.Serializable, K extends Canonical> = JsonInterface<T, J> & MutableAtomFamilyToken<T, J, K> & {
|
|
883
799
|
(key: K): MutableAtomToken<T, J>;
|
|
884
800
|
subject: Subject<StateCreation<MutableAtomToken<T, J>> | StateDisposal<MutableAtomToken<T, J>>>;
|
|
@@ -886,24 +802,28 @@ type MutableAtomFamily<T extends Transceiver<any>, J extends Json.Serializable,
|
|
|
886
802
|
internalRoles: string[] | undefined;
|
|
887
803
|
};
|
|
888
804
|
type AtomFamily<T, K extends Canonical = Canonical> = MutableAtomFamily<T extends Transceiver<any> ? T : never, any, K> | RegularAtomFamily<T, K>;
|
|
805
|
+
// biome-ignore format: intersection
|
|
889
806
|
type WritablePureSelectorFamily<T, K extends Canonical> = WritablePureSelectorFamilyToken<T, K> & ((key: K) => WritablePureSelectorToken<T>) & {
|
|
890
807
|
default: (key: K) => T;
|
|
891
808
|
subject: Subject<StateCreation<WritablePureSelectorToken<T>> | StateDisposal<WritablePureSelectorToken<T>>>;
|
|
892
809
|
install: (store: Store) => void;
|
|
893
810
|
internalRoles: string[] | undefined;
|
|
894
811
|
};
|
|
812
|
+
// biome-ignore format: intersection
|
|
895
813
|
type WritableHeldSelectorFamily<T, K extends Canonical> = WritableHeldSelectorFamilyToken<T, K> & ((key: K) => WritableHeldSelectorToken<T>) & {
|
|
896
814
|
default: (key: K) => T;
|
|
897
815
|
subject: Subject<StateCreation<WritableHeldSelectorToken<T>> | StateDisposal<WritableHeldSelectorToken<T>>>;
|
|
898
816
|
install: (store: Store) => void;
|
|
899
817
|
internalRoles: string[] | undefined;
|
|
900
818
|
};
|
|
819
|
+
// biome-ignore format: intersection
|
|
901
820
|
type ReadonlyPureSelectorFamily<T, K extends Canonical> = ReadonlyPureSelectorFamilyToken<T, K> & ((key: K) => ReadonlyPureSelectorToken<T>) & {
|
|
902
821
|
default: (key: K) => T;
|
|
903
822
|
subject: Subject<StateCreation<ReadonlyPureSelectorToken<T>> | StateDisposal<ReadonlyPureSelectorToken<T>>>;
|
|
904
823
|
install: (store: Store) => void;
|
|
905
824
|
internalRoles: string[] | undefined;
|
|
906
825
|
};
|
|
826
|
+
// biome-ignore format: intersection
|
|
907
827
|
type ReadonlyHeldSelectorFamily<T, K extends Canonical> = ReadonlyHeldSelectorFamilyToken<T, K> & ((key: K) => ReadonlyHeldSelectorToken<T>) & {
|
|
908
828
|
default: (key: K) => T;
|
|
909
829
|
subject: Subject<StateCreation<ReadonlyHeldSelectorToken<T>> | StateDisposal<ReadonlyHeldSelectorToken<T>>>;
|
|
@@ -918,7 +838,6 @@ type SelectorFamily<T, K extends Canonical> = HeldSelectorFamily<T, K> | PureSel
|
|
|
918
838
|
type WritableFamily<T, K extends Canonical> = AtomFamily<T, K> | WritablePureSelectorFamily<T, K>;
|
|
919
839
|
type ReadableFamily<T, K extends Canonical> = AtomFamily<T, K> | SelectorFamily<T, K>;
|
|
920
840
|
type AtomIOInternalResource = ReadableFamily<any, any> | ReadableState<any> | Timeline<any> | Transaction<any>;
|
|
921
|
-
|
|
922
841
|
//#endregion
|
|
923
842
|
export { Atom, AtomFamily, AtomIOInternalResource, AtomIOState, AtomKey, BaseExternalStoreConfiguration, ChildStore, CircularBuffer, Count, Each, Empty, EnvironmentData, ExternalStoreConfiguration, ExternalStoreWithContentConfiguration, FAMILY_MEMBER_TOKEN_TYPES, FamilyTracker, Flat, Func, Future, HeldSelector, HeldSelectorFamily, IMPLICIT, Join, JoinStateFamilies, Junction, JunctionAdvancedConfiguration, JunctionEntries, JunctionEntriesBase, JunctionJSON, JunctionSchema, JunctionSchemaBase, LazyMap, Lineage, Modify, Molecule, MutableAtom, MutableAtomFamily, NotFoundError, OperationProgress, PureSelector, PureSelectorFamily, ReadableFamily, ReadableState, ReadonlyHeldSelector, ReadonlyHeldSelectorFamily, ReadonlyPureSelector, ReadonlyPureSelectorFamily, ReadonlySelector, ReadonlySelectorFamily, ReadonlySelectorKey, Refinement, RegularAtom, RegularAtomFamily, ReservedIntrospectionKey, RootStore, Selector, SelectorFamily, SelectorKey, Signal$1 as Signal, StateKey, StatefulSubject, Store, StoreEventCarrier, Subject, TRANSACTION_PHASES, Timeline, TimelineAtomUpdate, TimelineMoleculeCreation, TimelineMoleculeDisposal, TimelineSelectorUpdate, TimelineStateCreation, TimelineStateDisposal, TimelineTransactionUpdate, Tracker, Transaction, TransactionEpoch, TransactionPhase, TransactionProgress, Transceiver, TransceiverMode, WritableFamily, WritableHeldSelector, WritableHeldSelectorFamily, WritablePureSelector, WritablePureSelectorFamily, WritableSelector, WritableSelectorFamily, WritableState, abortTransaction, actUponStore, allocateIntoStore, applyTransaction, arbitrary, assignTransactionToContinuity, become, buildTransaction, cacheValue, capitalize, claimWithinStore, clearStore, closeOperation, counterfeit, createAtomFamily, createMutableAtom, createMutableAtomFamily, createReadonlyHeldSelector, createReadonlyPureSelector, createReadonlyPureSelectorFamily, createRegularAtom, createRegularAtomFamily, createSelectorFamily, createStandaloneAtom, createStandaloneSelector, createTimeline, createTransaction, createWritableHeldSelector, createWritablePureSelector, createWritablePureSelectorFamily, deallocateFromStore, deposit, disposeAtom, disposeFromStore, disposeSelector, editRelationsInStore, evictCachedValue, findInStore, findRelationsInStore, fuseWithinStore, getContinuityKey, getEnvironmentData, getEpochNumberOfAction, getEpochNumberOfContinuity, getFromStore, getInternalRelationsFromStore, getJoin, getJsonFamily, getJsonToken, getSelectorDependencyKeys, getTrace, getUpdateFamily, getUpdateToken, ingestAtomUpdate, ingestCreationEvent, ingestDisposalEvent, ingestMoleculeCreationEvent, ingestMoleculeDisposalEvent, ingestMoleculeTransferEvent, ingestSelectorUpdate, ingestTransactionUpdate, initFamilyMemberInStore, installIntoStore, isAtomDefault, isAtomKey, isChildStore, isDone, isReadonlySelectorKey, isReservedIntrospectionKey, isRootStore, isSelectorKey, isStateKey, isTransceiver, makeRootMoleculeInStore, markAtomAsDefault, markAtomAsNotDefault, markDone, newest, openOperation, prettyPrintTokenType, readCachedValue, readOrComputeValue, recallState, registerSelector, seekInStore, setAtomOrSelector, setEpochNumberOfAction, setEpochNumberOfContinuity, setIntoStore, subscribeInStore, subscribeToRootAtoms, subscribeToState, subscribeToTimeline, subscribeToTransaction, timeTravel, traceAllSelectorAtoms, traceSelectorAtoms, updateSelectorAtoms, withdraw };
|
|
924
843
|
//# sourceMappingURL=index.d.ts.map
|