UNPKG

736 BTypeScriptView Raw
1import type { Browser, Element } from 'webdriverio';
2declare global {
3 var WDIO_WORKER: boolean;
4}
5/**
6 * wraps a function into a Fiber ready context to enable sync execution and hooks
7 * @param {Function} fn function to be executed
8 * @param {String} commandName name of that function
9 * @param {Function[]} beforeCommand method to be executed before calling the actual function
10 * @param {Function[]} afterCommand method to be executed after calling the actual function
11 * @return {Function} actual wrapped function
12 */
13export default function wrapCommand(commandName: string, fn: Function): (this: Browser<'async'> | Element<'async'>, ...args: any[]) => any;
14//# sourceMappingURL=wrapCommand.d.ts.map
\No newline at end of file