mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 06:50:19 +00:00
Update index.d.ts
Change pause to actually make ms optional. The documentation states that you can provide zero arguments to suspend the browser indefinitely, but it requires the ms argument, which forces you to provide at least the first argument.
This commit is contained in:
Vendored
+2
-2
@@ -1220,10 +1220,10 @@ export interface NightwatchAPI {
|
||||
* browser.pause();
|
||||
* };
|
||||
* ```
|
||||
* @param ms: The number of milliseconds to wait.
|
||||
* @param ms: Optional - The number of milliseconds to wait.
|
||||
* @param callback: Optional callback function to be called when the command finishes.
|
||||
*/
|
||||
pause(ms: number, callback?: (result: NightwatchCallbackResult) => void): this;
|
||||
pause(ms?: number, callback?: (result: NightwatchCallbackResult) => void): this;
|
||||
|
||||
/**
|
||||
* A simple perform command which allows access to the "api" in a callback. Can be useful if you want to read variables set by other commands.
|
||||
|
||||
Reference in New Issue
Block a user