tapbundle/dist_ts/tapbundle.classes.taptools.d.ts

25 lines
716 B
TypeScript
Raw Permalink Normal View History

2020-07-08 00:15:44 +00:00
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>;
}