cross-state 0.33.5 → 0.33.6
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
|
export { Cache, createCache, type CacheFunction, type CacheGetOptions, type CacheOptions, } from './cache';
|
|
2
|
-
export type { Cancel, Duration, Effect, Listener, SubscribeOptions, AsyncUpdateFunction, Selector, Update, UpdateFrom, UpdateFunction, CalculationActions, Use, } from './commonTypes';
|
|
2
|
+
export type { Cancel, Duration, Effect, Listener, SubscribeOptions, AsyncUpdateFunction, Selector, Update, UpdateFrom, UpdateFunction, CalculationActions, Use, AsyncConnectionActions, BaseConnectionActions, Connection, ConnectionActions, DisposableCancel, } from './commonTypes';
|
|
3
3
|
export { ResourceGroup, allResources, createResourceGroup, type Resource } from './resourceGroup';
|
|
4
4
|
export { Scope, createScope } from './scope';
|
|
5
5
|
export { Store, createStore, type BoundStoreMethods, type StoreMethods, type StoreOptions, type StoreOptionsWithMethods, } from './store';
|
|
@@ -11,7 +11,7 @@ export declare class Sync<T> {
|
|
|
11
11
|
private previousState;
|
|
12
12
|
private patchStream;
|
|
13
13
|
constructor(store: Store<T>);
|
|
14
|
-
connectToClient(listener: (message: Message<T>) => void): import("../core
|
|
14
|
+
connectToClient(listener: (message: Message<T>) => void): import("../core").DisposableCancel;
|
|
15
15
|
connectToServer(stream: AsyncIterable<Message<T>>): Promise<void>;
|
|
16
16
|
}
|
|
17
17
|
export declare function createSync<T>(store: Store<T>): Sync<T>;
|