Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 27f7981

Browse files
cnishinaheathkit
authored andcommitted
fix(config): fix interface for functions such as onPrepare (#3434)
closes #3431
1 parent 7c20dca commit 27f7981

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/config.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ export interface Config {
349349
* and globals from the test framework will NOT be available. The main
350350
* purpose of this function should be to bring up test dependencies.
351351
*/
352-
beforeLaunch?: () => {};
352+
beforeLaunch?: () => void;
353353

354354
/**
355355
* A callback function called once protractor is ready and available, and
@@ -379,7 +379,7 @@ export interface Config {
379379
* console.log('Executing capability', config.capabilities);
380380
* });
381381
*/
382-
onPrepare?: () => {};
382+
onPrepare?: () => void;
383383

384384
/**
385385
* A callback function called once tests are finished. onComplete can
@@ -389,14 +389,14 @@ export interface Config {
389389
* At this point, tests will be done but global objects will still be
390390
* available.
391391
*/
392-
onComplete?: () => {};
392+
onComplete?: () => void;
393393

394394
/**
395395
* A callback function called once the tests have finished running and
396396
* the WebDriver instance has been shut down. It is passed the exit code
397397
* (0 if the tests passed). This is called once per capability.
398398
*/
399-
onCleanUp?: (exitCode: number) => {};
399+
onCleanUp?: (exitCode: number) => void;
400400

401401
/**
402402
* A callback function called once all tests have finished running and
@@ -405,7 +405,7 @@ export interface Config {
405405
* asynchronous code to be executed before the program exits.
406406
* This is called only once before the program exits (after onCleanUp).
407407
*/
408-
afterLaunch?: (exitCode: number) => {};
408+
afterLaunch?: (exitCode: number) => void;
409409

410410
/**
411411
* The params object will be passed directly to the Protractor instance,
@@ -491,7 +491,7 @@ export interface Config {
491491
/**
492492
* Function called to print jasmine results.
493493
*/
494-
print?: () => {};
494+
print?: () => void;
495495
/**
496496
* If set, only execute specs whose names match the pattern, which is
497497
* internally compiled to a RegExp.

0 commit comments

Comments
 (0)