@@ -25,17 +25,17 @@ interface HttpDebugInterface {
2525// noinspection AngularMissingOrInvalidDeclarationInModule
2626@Component ( { selector : 'lib-hello-test' , template : '' } )
2727export class MyTestComponent implements OnInit {
28- @Logger ( ) public logger : LoggerService ;
29- @TraceLog ( ) public trace : LogFn ;
30- @DebugLog ( ) public debug : LogFn ;
31- @InfoLog ( ) public info : LogFn ;
32- @ErrorLog ( ) public error : LogFn ;
33- @WarnLog ( ) public warn : LogFn ;
34- @Log ( ) public log : LogFn ;
28+ @Logger ( ) public logger ! : LoggerService ;
29+ @TraceLog ( ) public trace ! : LogFn ;
30+ @DebugLog ( ) public debug ! : LogFn ;
31+ @InfoLog ( ) public info ! : LogFn ;
32+ @ErrorLog ( ) public error ! : LogFn ;
33+ @WarnLog ( ) public warn ! : LogFn ;
34+ @Log ( ) public log ! : LogFn ;
3535
3636 public count : number = 0 ;
37- public hook : string ;
38- public doneHeavy : boolean ;
37+ public hook : string | null = null ;
38+ public doneHeavy : boolean = false ;
3939 public name : string = 'MockLoggerComponent' ;
4040
4141 @Group ( 'Test group' )
@@ -101,7 +101,7 @@ export class MyTestComponent implements OnInit {
101101 }
102102
103103 public longQueryBySecondMs ( seconds : number , done : Fn ) : void {
104- const info : TimerInfo = this . logger . startTime ( 'longQueryBySecondMs' ) ;
104+ const info : TimerInfo | null = this . logger . startTime ( 'longQueryBySecondMs' ) ;
105105 this . extracted ( seconds , done ) ;
106106 this . logger . endTime ( info ) ;
107107 }
0 commit comments