GoScrobble/web/node_modules/@reduxjs/toolkit/dist/utils.d.ts

18 lines
1.1 KiB
TypeScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
import type { Middleware } from 'redux';
export declare function getTimeMeasureUtils(maxDelay: number, fnName: string): {
measureTime<T>(fn: () => T): T;
warnIfExceeded(): void;
};
/**
* @public
*/
export declare class MiddlewareArray<Middlewares extends Middleware<any, any>> extends Array<Middlewares> {
constructor(arrayLength?: number);
constructor(...items: Middlewares[]);
static get [Symbol.species](): any;
concat<AdditionalMiddlewares extends ReadonlyArray<Middleware<any, any>>>(items: AdditionalMiddlewares): MiddlewareArray<Middlewares | AdditionalMiddlewares[number]>;
concat<AdditionalMiddlewares extends ReadonlyArray<Middleware<any, any>>>(...items: AdditionalMiddlewares): MiddlewareArray<Middlewares | AdditionalMiddlewares[number]>;
prepend<AdditionalMiddlewares extends ReadonlyArray<Middleware<any, any>>>(items: AdditionalMiddlewares): MiddlewareArray<AdditionalMiddlewares[number] | Middlewares>;
prepend<AdditionalMiddlewares extends ReadonlyArray<Middleware<any, any>>>(...items: AdditionalMiddlewares): MiddlewareArray<AdditionalMiddlewares[number] | Middlewares>;
}