@@ -349,7 +349,7 @@ export interface Config {
349
349
* and globals from the test framework will NOT be available. The main
350
350
* purpose of this function should be to bring up test dependencies.
351
351
*/
352
- beforeLaunch ?: ( ) => { } ;
352
+ beforeLaunch ?: ( ) => void ;
353
353
354
354
/**
355
355
* A callback function called once protractor is ready and available, and
@@ -379,7 +379,7 @@ export interface Config {
379
379
* console.log('Executing capability', config.capabilities);
380
380
* });
381
381
*/
382
- onPrepare ?: ( ) => { } ;
382
+ onPrepare ?: ( ) => void ;
383
383
384
384
/**
385
385
* A callback function called once tests are finished. onComplete can
@@ -389,14 +389,14 @@ export interface Config {
389
389
* At this point, tests will be done but global objects will still be
390
390
* available.
391
391
*/
392
- onComplete ?: ( ) => { } ;
392
+ onComplete ?: ( ) => void ;
393
393
394
394
/**
395
395
* A callback function called once the tests have finished running and
396
396
* the WebDriver instance has been shut down. It is passed the exit code
397
397
* (0 if the tests passed). This is called once per capability.
398
398
*/
399
- onCleanUp ?: ( exitCode : number ) => { } ;
399
+ onCleanUp ?: ( exitCode : number ) => void ;
400
400
401
401
/**
402
402
* A callback function called once all tests have finished running and
@@ -405,7 +405,7 @@ export interface Config {
405
405
* asynchronous code to be executed before the program exits.
406
406
* This is called only once before the program exits (after onCleanUp).
407
407
*/
408
- afterLaunch ?: ( exitCode : number ) => { } ;
408
+ afterLaunch ?: ( exitCode : number ) => void ;
409
409
410
410
/**
411
411
* The params object will be passed directly to the Protractor instance,
@@ -491,7 +491,7 @@ export interface Config {
491
491
/**
492
492
* Function called to print jasmine results.
493
493
*/
494
- print ?: ( ) => { } ;
494
+ print ?: ( ) => void ;
495
495
/**
496
496
* If set, only execute specs whose names match the pattern, which is
497
497
* internally compiled to a RegExp.
0 commit comments