mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 00:19:55 +03:00
chore(app): prettier
This commit is contained in:
parent
05eed818ae
commit
c7e84ff4dc
|
@ -600,7 +600,9 @@ const extensionCompose =
|
|||
};
|
||||
|
||||
interface ReduxDevtoolsExtensionCompose {
|
||||
(config: Config): <StoreExt>(...funcs: Array<StoreEnhancer<StoreExt>>) => StoreEnhancer<StoreExt>;
|
||||
(config: Config): <StoreExt>(
|
||||
...funcs: Array<StoreEnhancer<StoreExt>>
|
||||
) => StoreEnhancer<StoreExt>;
|
||||
<StoreExt>(...funcs: Array<StoreEnhancer<StoreExt>>): StoreEnhancer<StoreExt>;
|
||||
}
|
||||
|
||||
|
@ -616,7 +618,9 @@ function reduxDevtoolsExtensionCompose<StoreExt>(
|
|||
function reduxDevtoolsExtensionCompose<StoreExt>(
|
||||
...funcs: Array<StoreEnhancer<StoreExt>>
|
||||
): StoreEnhancer<StoreExt>;
|
||||
function reduxDevtoolsExtensionCompose<StoreExt>(...funcs: [Config] | Array<StoreEnhancer<StoreExt>>) {
|
||||
function reduxDevtoolsExtensionCompose<StoreExt>(
|
||||
...funcs: [Config] | Array<StoreEnhancer<StoreExt>>
|
||||
) {
|
||||
if (funcs.length === 0) {
|
||||
return __REDUX_DEVTOOLS_EXTENSION__();
|
||||
}
|
||||
|
|
|
@ -195,7 +195,9 @@ interface ReduxDevtoolsExtension {
|
|||
}
|
||||
|
||||
export interface ReduxDevtoolsExtensionCompose {
|
||||
(config: Config): <StoreExt>(...funcs: Array<StoreEnhancer<StoreExt>>) => StoreEnhancer<StoreExt>;
|
||||
(config: Config): <StoreExt>(
|
||||
...funcs: Array<StoreEnhancer<StoreExt>>
|
||||
) => StoreEnhancer<StoreExt>;
|
||||
<StoreExt>(...funcs: Array<StoreEnhancer<StoreExt>>): StoreEnhancer<StoreExt>;
|
||||
}
|
||||
|
||||
|
@ -209,8 +211,12 @@ declare global {
|
|||
function extensionComposeStub<StoreExt>(
|
||||
config: Config
|
||||
): (...funcs: Array<StoreEnhancer<StoreExt>>) => StoreEnhancer<StoreExt>;
|
||||
function extensionComposeStub<StoreExt>(...funcs: Array<StoreEnhancer<StoreExt>>): StoreEnhancer<StoreExt>;
|
||||
function extensionComposeStub<StoreExt>(...funcs: [Config] | Array<StoreEnhancer<StoreExt>>) {
|
||||
function extensionComposeStub<StoreExt>(
|
||||
...funcs: Array<StoreEnhancer<StoreExt>>
|
||||
): StoreEnhancer<StoreExt>;
|
||||
function extensionComposeStub<StoreExt>(
|
||||
...funcs: [Config] | Array<StoreEnhancer<StoreExt>>
|
||||
) {
|
||||
if (funcs.length === 0) return undefined;
|
||||
if (typeof funcs[0] === 'object') return compose;
|
||||
return compose(...(funcs as Array<StoreEnhancer<StoreExt>>));
|
||||
|
|
Loading…
Reference in New Issue
Block a user