Match-id-dc5396d053912b31447af44751ffc75c4cd6e2e5

This commit is contained in:
* 2022-07-30 15:24:07 +08:00 committed by *
parent 1225839303
commit 4120cf3c3d
1 changed files with 0 additions and 4 deletions

View File

@ -15,7 +15,6 @@ function isPromise(obj: any): boolean {
type StoreConfig<S extends object, A extends UserActions<S>, C extends UserComputedValues<S>> = {
state?: S;
// options?: { suppressHooks?: boolean };
actions?: A;
id?: string;
computed?: C;
@ -27,18 +26,15 @@ export type ReduxStoreHandler = {
getState: () => any;
subscribe: (listener: () => void) => () => void;
replaceReducer: (reducer: (state: any, action: { type: string }) => any) => void;
// _horizonXstore: StoreHandler<any, any, any>;
};
type StoreHandler<S extends object, A extends UserActions<S>, C extends UserComputedValues<S>> = {
$subscribe: (listener: () => void) => void;
$unsubscribe: (listener: () => void) => void;
$s: S;
// $config: StoreConfig<S, A, C>;
$queue: QueuedStoreActions<S, A>;
$a: StoreActions<S, A>;
$c: UserComputedValues<S>;
// reduxHandler?: ReduxStoreHandler;
} & { [K in keyof S]: S[K] } &
{ [K in keyof A]: Action<A[K], S> } &
{ [K in keyof C]: ReturnType<C[K]> };