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