@@ -278,11 +278,11 @@ expectType<commander.Command>(program.executableDir(__dirname));
278
278
expectType < string > ( program . executableDir ( ) ) ;
279
279
280
280
// outputHelp
281
- // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
281
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type, @typescript-eslint/no-confusing-void-expression
282
282
expectType < void > ( program . outputHelp ( ) ) ;
283
- // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
283
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type, @typescript-eslint/no-confusing-void-expression
284
284
expectType < void > ( program . outputHelp ( ( str : string ) => { return str ; } ) ) ;
285
- // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
285
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type, @typescript-eslint/no-confusing-void-expression
286
286
expectType < void > ( program . outputHelp ( { error : true } ) ) ;
287
287
288
288
// help
@@ -354,8 +354,8 @@ expectType<commander.Command>(program.configureOutput({ }));
354
354
expectType < commander . OutputConfiguration > ( program . configureOutput ( ) ) ;
355
355
356
356
expectType < commander . Command > ( program . configureOutput ( {
357
- writeOut : ( str : string ) => console . log ( str ) ,
358
- writeErr : ( str : string ) => console . error ( str ) ,
357
+ writeOut : ( str : string ) => { console . log ( str ) ; } ,
358
+ writeErr : ( str : string ) => { console . error ( str ) ; } ,
359
359
getOutHelpWidth : ( ) => 80 ,
360
360
getErrHelpWidth : ( ) => 80 ,
361
361
outputError : ( str : string , write : ( str : string ) => void ) => { write ( str ) ; }
0 commit comments