mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 09:25:15 +00:00
18 lines
1.1 KiB
TypeScript
18 lines
1.1 KiB
TypeScript
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>;
|
|
}
|