25 lines
716 B
TypeScript
25 lines
716 B
TypeScript
import * as plugins from './tapbundle.plugins';
|
|
export interface IPromiseFunc {
|
|
(): Promise<any>;
|
|
}
|
|
export declare class TapTools {
|
|
/**
|
|
* the referenced TapTest
|
|
*/
|
|
private _tapTest;
|
|
constructor(TapTestArg: any);
|
|
/**
|
|
* allow failure
|
|
*/
|
|
allowFailure(): void;
|
|
/**
|
|
* async/await delay method
|
|
*/
|
|
delayFor(timeMilliArg: any): Promise<void>;
|
|
delayForRandom(timeMilliMinArg: any, timeMilliMaxArg: any): Promise<void>;
|
|
timeout(timeMilliArg: number): Promise<void>;
|
|
checkIterationLeak(iterationfuncArg: IPromiseFunc): Promise<void>;
|
|
returnError(throwingFuncArg: IPromiseFunc): Promise<Error>;
|
|
defer(): plugins.smartpromise.Deferred<unknown>;
|
|
}
|