sia-reactor 0.0.18 → 0.0.19

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.
@@ -1,5 +1,5 @@
1
1
  import { useLayoutEffect } from 'react';
2
- import { E as EffectOptions, R as Reactor, l as Reactive, W as WildPaths, o as PathValue } from '../index-JdV5I0R3.cjs';
2
+ import { E as EffectOptions, R as Reactor, l as Reactive, W as WildPaths, o as PathValue } from '../index-C2hyIh0K.cjs';
3
3
 
4
4
  /** Isomorphic layout effect alias (`useLayoutEffect` in browser, `useEffect` otherwise). */
5
5
  declare const useISOLayoutEffect: typeof useLayoutEffect;
@@ -1,5 +1,5 @@
1
1
  import { useLayoutEffect } from 'react';
2
- import { E as EffectOptions, R as Reactor, l as Reactive, W as WildPaths, o as PathValue } from '../index-JdV5I0R3.js';
2
+ import { E as EffectOptions, R as Reactor, l as Reactive, W as WildPaths, o as PathValue } from '../index-C2hyIh0K.js';
3
3
 
4
4
  /** Isomorphic layout effect alias (`useLayoutEffect` in browser, `useEffect` otherwise). */
5
5
  declare const useISOLayoutEffect: typeof useLayoutEffect;
@@ -1,5 +1,5 @@
1
- import { E as EffectOptions } from '../index-JdV5I0R3.cjs';
2
- export { A as Autotracker, w as withTracker } from '../index-JdV5I0R3.cjs';
1
+ import { E as EffectOptions } from '../index-C2hyIh0K.cjs';
2
+ export { A as Autotracker, w as withTracker } from '../index-C2hyIh0K.cjs';
3
3
 
4
4
  /**
5
5
  * Runs a reactive side effect in vanilla JavaScript.
@@ -1,5 +1,5 @@
1
- import { E as EffectOptions } from '../index-JdV5I0R3.js';
2
- export { A as Autotracker, w as withTracker } from '../index-JdV5I0R3.js';
1
+ import { E as EffectOptions } from '../index-C2hyIh0K.js';
2
+ export { A as Autotracker, w as withTracker } from '../index-C2hyIh0K.js';
3
3
 
4
4
  /**
5
5
  * Runs a reactive side effect in vanilla JavaScript.
@@ -21,22 +21,16 @@ type NoTraverse =
21
21
  | Inert<unknown>;
22
22
 
23
23
  /** Dot-path union for traversable keys in `T`. */
24
- type Paths<T, S extends string = ".", D extends number = RDepth, Seen = never> = [
25
- D
26
- ] extends [0]
24
+ type Paths<T, S extends string = ".", D extends number = RDepth> = [D] extends [0]
27
25
  ? never // Circuit Breaker Triggered
28
- : T extends Seen
29
- ? never // Cycle Guard Triggered
30
26
  : T extends NoTraverse
31
27
  ? never
32
28
  : T extends readonly (infer U)[]
33
- ?
34
- | `${Extract<keyof T, number>}`
35
- | `${Extract<keyof T, number>}${S}${Paths<U, S, RPrev[D], Seen | T>}`
29
+ ? `${Extract<keyof T, number>}` | `${Extract<keyof T, number>}${S}${Paths<U, S, RPrev[D]>}`
36
30
  : {
37
31
  [K in keyof T & (string | number)]: T[K] extends Primitive
38
32
  ? `${K}`
39
- : `${K}` | `${K}${S}${Paths<T[K], S, RPrev[D], Seen | T>}`;
33
+ : `${K}` | `${K}${S}${Paths<T[K], S, RPrev[D]>}`;
40
34
  }[keyof T & (string | number)];
41
35
  /** Wildcard path (`*`) or concrete dot-path. */
42
36
  type WildPaths<T, S extends string = "."> = "*" | Paths<T, S>;
@@ -119,16 +113,14 @@ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (
119
113
  // --- "It's not that deep" WARRIORS ---
120
114
 
121
115
  /** Deep key union of `T` up to depth `D{10}`. */
122
- type DeepKeys<T, D extends number = RDepth, Seen = never> = [D] extends [0]
116
+ type DeepKeys<T, D extends number = RDepth> = [D] extends [0]
123
117
  ? never
124
- : T extends Seen
125
- ? never // Cycle Guard Triggered
126
118
  : T extends NoTraverse
127
119
  ? never
128
120
  : T extends readonly any[]
129
- ? DeepKeys<T[number], RPrev[D], Seen | T>
121
+ ? DeepKeys<T[number], RPrev[D]>
130
122
  : {
131
- [K in keyof T & (string | number)]: K | DeepKeys<T[K], RPrev[D], Seen | T>;
123
+ [K in keyof T & (string | number)]: K | DeepKeys<T[K], RPrev[D]>;
132
124
  }[keyof T & (string | number)];
133
125
 
134
126
  /** Recursive merge result type for `T1` and `T2` up to depth `D{10}`. */
@@ -1073,4 +1065,4 @@ declare const NIL: any;
1073
1065
  /** Shared no-operation function. */
1074
1066
  declare const NOOP: () => void;
1075
1067
 
1076
- export { RAW as $, Autotracker as A, BaseReactorPlugin as B, CTX as C, type DeepKeys as D, type EffectOptions as E, EVT_WARN as F, type Getter as G, type GetterRecord as H, INDIFFABLE as I, INERTIA as J, type Inert as K, type Intent as L, type Listener as M, type ListenerOptions as N, type ListenerOptionsTuple as O, type Paths as P, type ListenerRecord as Q, Reactor as R, type Live as S, NIL as T, NOOP as U, type PathBranch as V, type WildPaths as W, type PathBranchValue as X, type PathKey as Y, type PathLeaf as Z, type Payload as _, type REvent as a, REJECTABLE as a0, RTR_BATCH as a1, RTR_LOG as a2, type ReactivePreferences as a3, type ReactorBuild as a4, ReactorEvent as a5, SSVERSION as a6, type Setter as a7, type SetterRecord as a8, type Stable as a9, volatile as aA, type State as aa, type StrictPathKey as ab, type SyncOptions as ac, type SyncOptionsTuple as ad, TERMINATOR as ae, type Target as af, type Unflatten as ag, type UnionToIntersection as ah, type UpdatePayload as ai, VERSION as aj, type Volatile as ak, type Watcher as al, type WatcherRecord as am, getRaw as an, getSnapshotVersion as ao, getVersion as ap, inert as aq, intent as ar, isInert as as, isIntent as at, isVolatile as au, live as av, methods as aw, reactive as ax, stable as ay, state as az, type ReactorPluginConstructor as b, canHandle as c, deepClone as d, deleteAny as e, getTrailRecords as f, getAny as g, isObj as h, inAny as i, isPOJO as j, parseEvtOpts as k, type Reactive as l, mergeObjs as m, nuke as n, type PathValue as o, parseAnyObj as p, type ChildPaths as q, type DeepMerge as r, setAny as s, type DeepPartial as t, type DeepRequired as u, type Deleter as v, withTracker as w, type DeleterRecord as x, type DirectPayload as y, EVT_OPTS as z };
1068
+ export { type Payload as $, Autotracker as A, BaseReactorPlugin as B, CTX as C, type DeepKeys as D, type EffectOptions as E, EVT_WARN as F, type Getter as G, type GetterRecord as H, type Inert as I, INDIFFABLE as J, INERTIA as K, type Intent as L, type Listener as M, type ListenerOptions as N, type ListenerOptionsTuple as O, type Paths as P, type ListenerRecord as Q, Reactor as R, type Live as S, NIL as T, NOOP as U, type NoTraverse as V, type WildPaths as W, type PathBranch as X, type PathBranchValue as Y, type PathKey as Z, type PathLeaf as _, type REvent as a, type Primitive as a0, RAW as a1, REJECTABLE as a2, RTR_BATCH as a3, RTR_LOG as a4, type ReactivePreferences as a5, type ReactorBuild as a6, ReactorEvent as a7, SSVERSION as a8, type Setter as a9, stable as aA, state as aB, volatile as aC, type SetterRecord as aa, type Stable as ab, type State as ac, type StrictPathKey as ad, type SyncOptions as ae, type SyncOptionsTuple as af, TERMINATOR as ag, type Target as ah, type Unflatten as ai, type UnionToIntersection as aj, type UpdatePayload as ak, VERSION as al, type Volatile as am, type Watcher as an, type WatcherRecord as ao, getRaw as ap, getSnapshotVersion as aq, getVersion as ar, inert as as, intent as at, isInert as au, isIntent as av, isVolatile as aw, live as ax, methods as ay, reactive as az, type ReactorPluginConstructor as b, canHandle as c, deepClone as d, deleteAny as e, getTrailRecords as f, getAny as g, isObj as h, inAny as i, isPOJO as j, parseEvtOpts as k, type Reactive as l, mergeObjs as m, nuke as n, type PathValue as o, parseAnyObj as p, type ChildPaths as q, type DeepMerge as r, setAny as s, type DeepPartial as t, type DeepRequired as u, type Deleter as v, withTracker as w, type DeleterRecord as x, type DirectPayload as y, EVT_OPTS as z };
@@ -21,22 +21,16 @@ type NoTraverse =
21
21
  | Inert<unknown>;
22
22
 
23
23
  /** Dot-path union for traversable keys in `T`. */
24
- type Paths<T, S extends string = ".", D extends number = RDepth, Seen = never> = [
25
- D
26
- ] extends [0]
24
+ type Paths<T, S extends string = ".", D extends number = RDepth> = [D] extends [0]
27
25
  ? never // Circuit Breaker Triggered
28
- : T extends Seen
29
- ? never // Cycle Guard Triggered
30
26
  : T extends NoTraverse
31
27
  ? never
32
28
  : T extends readonly (infer U)[]
33
- ?
34
- | `${Extract<keyof T, number>}`
35
- | `${Extract<keyof T, number>}${S}${Paths<U, S, RPrev[D], Seen | T>}`
29
+ ? `${Extract<keyof T, number>}` | `${Extract<keyof T, number>}${S}${Paths<U, S, RPrev[D]>}`
36
30
  : {
37
31
  [K in keyof T & (string | number)]: T[K] extends Primitive
38
32
  ? `${K}`
39
- : `${K}` | `${K}${S}${Paths<T[K], S, RPrev[D], Seen | T>}`;
33
+ : `${K}` | `${K}${S}${Paths<T[K], S, RPrev[D]>}`;
40
34
  }[keyof T & (string | number)];
41
35
  /** Wildcard path (`*`) or concrete dot-path. */
42
36
  type WildPaths<T, S extends string = "."> = "*" | Paths<T, S>;
@@ -119,16 +113,14 @@ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (
119
113
  // --- "It's not that deep" WARRIORS ---
120
114
 
121
115
  /** Deep key union of `T` up to depth `D{10}`. */
122
- type DeepKeys<T, D extends number = RDepth, Seen = never> = [D] extends [0]
116
+ type DeepKeys<T, D extends number = RDepth> = [D] extends [0]
123
117
  ? never
124
- : T extends Seen
125
- ? never // Cycle Guard Triggered
126
118
  : T extends NoTraverse
127
119
  ? never
128
120
  : T extends readonly any[]
129
- ? DeepKeys<T[number], RPrev[D], Seen | T>
121
+ ? DeepKeys<T[number], RPrev[D]>
130
122
  : {
131
- [K in keyof T & (string | number)]: K | DeepKeys<T[K], RPrev[D], Seen | T>;
123
+ [K in keyof T & (string | number)]: K | DeepKeys<T[K], RPrev[D]>;
132
124
  }[keyof T & (string | number)];
133
125
 
134
126
  /** Recursive merge result type for `T1` and `T2` up to depth `D{10}`. */
@@ -1073,4 +1065,4 @@ declare const NIL: any;
1073
1065
  /** Shared no-operation function. */
1074
1066
  declare const NOOP: () => void;
1075
1067
 
1076
- export { RAW as $, Autotracker as A, BaseReactorPlugin as B, CTX as C, type DeepKeys as D, type EffectOptions as E, EVT_WARN as F, type Getter as G, type GetterRecord as H, INDIFFABLE as I, INERTIA as J, type Inert as K, type Intent as L, type Listener as M, type ListenerOptions as N, type ListenerOptionsTuple as O, type Paths as P, type ListenerRecord as Q, Reactor as R, type Live as S, NIL as T, NOOP as U, type PathBranch as V, type WildPaths as W, type PathBranchValue as X, type PathKey as Y, type PathLeaf as Z, type Payload as _, type REvent as a, REJECTABLE as a0, RTR_BATCH as a1, RTR_LOG as a2, type ReactivePreferences as a3, type ReactorBuild as a4, ReactorEvent as a5, SSVERSION as a6, type Setter as a7, type SetterRecord as a8, type Stable as a9, volatile as aA, type State as aa, type StrictPathKey as ab, type SyncOptions as ac, type SyncOptionsTuple as ad, TERMINATOR as ae, type Target as af, type Unflatten as ag, type UnionToIntersection as ah, type UpdatePayload as ai, VERSION as aj, type Volatile as ak, type Watcher as al, type WatcherRecord as am, getRaw as an, getSnapshotVersion as ao, getVersion as ap, inert as aq, intent as ar, isInert as as, isIntent as at, isVolatile as au, live as av, methods as aw, reactive as ax, stable as ay, state as az, type ReactorPluginConstructor as b, canHandle as c, deepClone as d, deleteAny as e, getTrailRecords as f, getAny as g, isObj as h, inAny as i, isPOJO as j, parseEvtOpts as k, type Reactive as l, mergeObjs as m, nuke as n, type PathValue as o, parseAnyObj as p, type ChildPaths as q, type DeepMerge as r, setAny as s, type DeepPartial as t, type DeepRequired as u, type Deleter as v, withTracker as w, type DeleterRecord as x, type DirectPayload as y, EVT_OPTS as z };
1068
+ export { type Payload as $, Autotracker as A, BaseReactorPlugin as B, CTX as C, type DeepKeys as D, type EffectOptions as E, EVT_WARN as F, type Getter as G, type GetterRecord as H, type Inert as I, INDIFFABLE as J, INERTIA as K, type Intent as L, type Listener as M, type ListenerOptions as N, type ListenerOptionsTuple as O, type Paths as P, type ListenerRecord as Q, Reactor as R, type Live as S, NIL as T, NOOP as U, type NoTraverse as V, type WildPaths as W, type PathBranch as X, type PathBranchValue as Y, type PathKey as Z, type PathLeaf as _, type REvent as a, type Primitive as a0, RAW as a1, REJECTABLE as a2, RTR_BATCH as a3, RTR_LOG as a4, type ReactivePreferences as a5, type ReactorBuild as a6, ReactorEvent as a7, SSVERSION as a8, type Setter as a9, stable as aA, state as aB, volatile as aC, type SetterRecord as aa, type Stable as ab, type State as ac, type StrictPathKey as ad, type SyncOptions as ae, type SyncOptionsTuple as af, TERMINATOR as ag, type Target as ah, type Unflatten as ai, type UnionToIntersection as aj, type UpdatePayload as ak, VERSION as al, type Volatile as am, type Watcher as an, type WatcherRecord as ao, getRaw as ap, getSnapshotVersion as aq, getVersion as ar, inert as as, intent as at, isInert as au, isIntent as av, isVolatile as aw, live as ax, methods as ay, reactive as az, type ReactorPluginConstructor as b, canHandle as c, deepClone as d, deleteAny as e, getTrailRecords as f, getAny as g, isObj as h, inAny as i, isPOJO as j, parseEvtOpts as k, type Reactive as l, mergeObjs as m, nuke as n, type PathValue as o, parseAnyObj as p, type ChildPaths as q, type DeepMerge as r, setAny as s, type DeepPartial as t, type DeepRequired as u, type Deleter as v, withTracker as w, type DeleterRecord as x, type DirectPayload as y, EVT_OPTS as z };
package/dist/index.d.cts CHANGED
@@ -1 +1 @@
1
- export { C as CTX, q as ChildPaths, D as DeepKeys, r as DeepMerge, t as DeepPartial, u as DeepRequired, v as Deleter, x as DeleterRecord, y as DirectPayload, z as EVT_OPTS, F as EVT_WARN, E as EffectOptions, G as Getter, H as GetterRecord, I as INDIFFABLE, J as INERTIA, K as Inert, L as Intent, M as Listener, N as ListenerOptions, O as ListenerOptionsTuple, Q as ListenerRecord, S as Live, T as NIL, U as NOOP, V as PathBranch, X as PathBranchValue, Y as PathKey, Z as PathLeaf, o as PathValue, P as Paths, _ as Payload, $ as RAW, a0 as REJECTABLE, a as REvent, a1 as RTR_BATCH, a2 as RTR_LOG, l as Reactive, a3 as ReactivePreferences, R as Reactor, a4 as ReactorBuild, a5 as ReactorEvent, a6 as SSVERSION, a7 as Setter, a8 as SetterRecord, a9 as Stable, aa as State, ab as StrictPathKey, ac as SyncOptions, ad as SyncOptionsTuple, ae as TERMINATOR, af as Target, ag as Unflatten, ah as UnionToIntersection, ai as UpdatePayload, aj as VERSION, ak as Volatile, al as Watcher, am as WatcherRecord, W as WildPaths, an as getRaw, ao as getSnapshotVersion, ap as getVersion, aq as inert, ar as intent, as as isInert, at as isIntent, au as isVolatile, av as live, aw as methods, ax as reactive, ay as stable, az as state, aA as volatile } from './index-JdV5I0R3.cjs';
1
+ export { C as CTX, q as ChildPaths, D as DeepKeys, r as DeepMerge, t as DeepPartial, u as DeepRequired, v as Deleter, x as DeleterRecord, y as DirectPayload, z as EVT_OPTS, F as EVT_WARN, E as EffectOptions, G as Getter, H as GetterRecord, J as INDIFFABLE, K as INERTIA, I as Inert, L as Intent, M as Listener, N as ListenerOptions, O as ListenerOptionsTuple, Q as ListenerRecord, S as Live, T as NIL, U as NOOP, V as NoTraverse, X as PathBranch, Y as PathBranchValue, Z as PathKey, _ as PathLeaf, o as PathValue, P as Paths, $ as Payload, a0 as Primitive, a1 as RAW, a2 as REJECTABLE, a as REvent, a3 as RTR_BATCH, a4 as RTR_LOG, l as Reactive, a5 as ReactivePreferences, R as Reactor, a6 as ReactorBuild, a7 as ReactorEvent, a8 as SSVERSION, a9 as Setter, aa as SetterRecord, ab as Stable, ac as State, ad as StrictPathKey, ae as SyncOptions, af as SyncOptionsTuple, ag as TERMINATOR, ah as Target, ai as Unflatten, aj as UnionToIntersection, ak as UpdatePayload, al as VERSION, am as Volatile, an as Watcher, ao as WatcherRecord, W as WildPaths, ap as getRaw, aq as getSnapshotVersion, ar as getVersion, as as inert, at as intent, au as isInert, av as isIntent, aw as isVolatile, ax as live, ay as methods, az as reactive, aA as stable, aB as state, aC as volatile } from './index-C2hyIh0K.cjs';
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { C as CTX, q as ChildPaths, D as DeepKeys, r as DeepMerge, t as DeepPartial, u as DeepRequired, v as Deleter, x as DeleterRecord, y as DirectPayload, z as EVT_OPTS, F as EVT_WARN, E as EffectOptions, G as Getter, H as GetterRecord, I as INDIFFABLE, J as INERTIA, K as Inert, L as Intent, M as Listener, N as ListenerOptions, O as ListenerOptionsTuple, Q as ListenerRecord, S as Live, T as NIL, U as NOOP, V as PathBranch, X as PathBranchValue, Y as PathKey, Z as PathLeaf, o as PathValue, P as Paths, _ as Payload, $ as RAW, a0 as REJECTABLE, a as REvent, a1 as RTR_BATCH, a2 as RTR_LOG, l as Reactive, a3 as ReactivePreferences, R as Reactor, a4 as ReactorBuild, a5 as ReactorEvent, a6 as SSVERSION, a7 as Setter, a8 as SetterRecord, a9 as Stable, aa as State, ab as StrictPathKey, ac as SyncOptions, ad as SyncOptionsTuple, ae as TERMINATOR, af as Target, ag as Unflatten, ah as UnionToIntersection, ai as UpdatePayload, aj as VERSION, ak as Volatile, al as Watcher, am as WatcherRecord, W as WildPaths, an as getRaw, ao as getSnapshotVersion, ap as getVersion, aq as inert, ar as intent, as as isInert, at as isIntent, au as isVolatile, av as live, aw as methods, ax as reactive, ay as stable, az as state, aA as volatile } from './index-JdV5I0R3.js';
1
+ export { C as CTX, q as ChildPaths, D as DeepKeys, r as DeepMerge, t as DeepPartial, u as DeepRequired, v as Deleter, x as DeleterRecord, y as DirectPayload, z as EVT_OPTS, F as EVT_WARN, E as EffectOptions, G as Getter, H as GetterRecord, J as INDIFFABLE, K as INERTIA, I as Inert, L as Intent, M as Listener, N as ListenerOptions, O as ListenerOptionsTuple, Q as ListenerRecord, S as Live, T as NIL, U as NOOP, V as NoTraverse, X as PathBranch, Y as PathBranchValue, Z as PathKey, _ as PathLeaf, o as PathValue, P as Paths, $ as Payload, a0 as Primitive, a1 as RAW, a2 as REJECTABLE, a as REvent, a3 as RTR_BATCH, a4 as RTR_LOG, l as Reactive, a5 as ReactivePreferences, R as Reactor, a6 as ReactorBuild, a7 as ReactorEvent, a8 as SSVERSION, a9 as Setter, aa as SetterRecord, ab as Stable, ac as State, ad as StrictPathKey, ae as SyncOptions, af as SyncOptionsTuple, ag as TERMINATOR, ah as Target, ai as Unflatten, aj as UnionToIntersection, ak as UpdatePayload, al as VERSION, am as Volatile, an as Watcher, ao as WatcherRecord, W as WildPaths, ap as getRaw, aq as getSnapshotVersion, ar as getVersion, as as inert, at as intent, au as isInert, av as isIntent, aw as isVolatile, ax as live, ay as methods, az as reactive, aA as stable, aB as state, aC as volatile } from './index-C2hyIh0K.js';
@@ -1,5 +1,5 @@
1
- import { P as Paths, B as BaseReactorPlugin, R as Reactor, a as REvent } from './index-JdV5I0R3.cjs';
2
- export { b as ReactorPluginConstructor } from './index-JdV5I0R3.cjs';
1
+ import { P as Paths, I as Inert, B as BaseReactorPlugin, R as Reactor, a as REvent } from './index-C2hyIh0K.cjs';
2
+ export { b as ReactorPluginConstructor } from './index-C2hyIh0K.cjs';
3
3
 
4
4
  interface StorageAdapterConfig {
5
5
  debug: boolean;
@@ -81,7 +81,7 @@ interface PersistConfig<T extends object> {
81
81
  /** Specific paths only, no "*"; instead don't pass anything */
82
82
  paths: Paths<T>[];
83
83
  /** Storage adapter class or instance to use, can satisfy `instanceof` or just definition, cast to `any` if the latter */
84
- adapter: StorageAdapter | AsyncStorageAdapter | StorageAdapterConstructor | AsyncStorageAdapterConstructor;
84
+ adapter: Inert<StorageAdapter> | Inert<AsyncStorageAdapter> | Inert<StorageAdapterConstructor> | Inert<AsyncStorageAdapterConstructor>;
85
85
  /** Throttle time for saving changes */
86
86
  throttle: number;
87
87
  /** Whether to use a clone of the state from `rtr.snapshot()`, incase store doesn't understand proxies */
package/dist/plugins.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { P as Paths, B as BaseReactorPlugin, R as Reactor, a as REvent } from './index-JdV5I0R3.js';
2
- export { b as ReactorPluginConstructor } from './index-JdV5I0R3.js';
1
+ import { P as Paths, I as Inert, B as BaseReactorPlugin, R as Reactor, a as REvent } from './index-C2hyIh0K.js';
2
+ export { b as ReactorPluginConstructor } from './index-C2hyIh0K.js';
3
3
 
4
4
  interface StorageAdapterConfig {
5
5
  debug: boolean;
@@ -81,7 +81,7 @@ interface PersistConfig<T extends object> {
81
81
  /** Specific paths only, no "*"; instead don't pass anything */
82
82
  paths: Paths<T>[];
83
83
  /** Storage adapter class or instance to use, can satisfy `instanceof` or just definition, cast to `any` if the latter */
84
- adapter: StorageAdapter | AsyncStorageAdapter | StorageAdapterConstructor | AsyncStorageAdapterConstructor;
84
+ adapter: Inert<StorageAdapter> | Inert<AsyncStorageAdapter> | Inert<StorageAdapterConstructor> | Inert<AsyncStorageAdapterConstructor>;
85
85
  /** Throttle time for saving changes */
86
86
  throttle: number;
87
87
  /** Whether to use a clone of the state from `rtr.snapshot()`, incase store doesn't understand proxies */