util.log("Finished "+util.colors.green('compilation')+" with "+errors.length+" errors after "+util.colors.magenta((newDate().getTime()-startTime)+' ms'));
util.log(`Finished ${util.colors.green('compilation')} with ${errors.length} errors after ${util.colors.magenta((newDate().getTime()-startTime)+' ms')}`);
util.log(`Finished ${util.colors.green('compilation')} with ${errors.length} errors after ${util.colors.magenta((newDate().getTime()-startTime)+' ms')}`);
}
exportinterfaceIReporter{
(err:Error):void;
(err:Error):void;
hasErrors():boolean;
end(emitError:boolean):NodeJS.ReadWriteStream;
end(emitError:boolean):NodeJS.ReadWriteStream;
}
exportfunctioncreateReporter():IReporter{
consterrors:Error[]=[];
consterrors:Error[]=[];
allErrors.push(errors);
classReportFunc{
constructor(err:Error){
constructor(err:Error){
errors.push(err);
}
...
...
@@ -52,7 +56,7 @@ export function createReporter(): IReporter {