Gazebo_simulation-Frontend/node_modules/wait-for-expect/lib/index.d.ts
2020-12-21 10:29:31 -05:00

17 lines
575 B
TypeScript

/**
* Waits for the expectation to pass and returns a Promise
*
* @param expectation Function Expectation that has to complete without throwing
* @param timeout Number Maximum wait interval, 4500ms by default
* @param interval Number Wait-between-retries interval, 50ms by default
* @return Promise Promise to return a callback result
*/
declare const waitForExpect: {
(expectation: () => void, timeout?: number, interval?: number): Promise<{}>;
defaults: {
timeout: number;
interval: number;
};
};
export default waitForExpect;