Match-id-0c5668dabc2e6177a9d163996fdaf8966ec4254c

This commit is contained in:
* 2022-07-30 15:43:20 +08:00 committed by *
commit 3a21d26522
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>> = { type StoreConfig<S extends object, A extends UserActions<S>, C extends UserComputedValues<S>> = {
state?: S; state?: S;
// options?: { suppressHooks?: boolean };
actions?: A; actions?: A;
id?: string; id?: string;
computed?: C; computed?: C;
@ -27,18 +26,15 @@ export type ReduxStoreHandler = {
getState: () => any; getState: () => any;
subscribe: (listener: () => void) => () => void; subscribe: (listener: () => void) => () => void;
replaceReducer: (reducer: (state: any, action: { type: string }) => any) => 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>> = { type StoreHandler<S extends object, A extends UserActions<S>, C extends UserComputedValues<S>> = {
$subscribe: (listener: () => void) => void; $subscribe: (listener: () => void) => void;
$unsubscribe: (listener: () => void) => void; $unsubscribe: (listener: () => void) => void;
$s: S; $s: S;
// $config: StoreConfig<S, A, C>;
$queue: QueuedStoreActions<S, A>; $queue: QueuedStoreActions<S, A>;
$a: StoreActions<S, A>; $a: StoreActions<S, A>;
$c: UserComputedValues<S>; $c: UserComputedValues<S>;
// reduxHandler?: ReduxStoreHandler;
} & { [K in keyof S]: S[K] } & } & { [K in keyof S]: S[K] } &
{ [K in keyof A]: Action<A[K], S> } & { [K in keyof A]: Action<A[K], S> } &
{ [K in keyof C]: ReturnType<C[K]> }; { [K in keyof C]: ReturnType<C[K]> };