Make log messages typed

This commit is contained in:
Kristóf Tóth
2018-05-30 14:19:19 +02:00
parent b635993656
commit 4b92f5552b
4 changed files with 15 additions and 5 deletions

View File

@ -6,6 +6,7 @@ import { WebSocketService } from '../services/websocket.service';
import { ConsoleCommand } from './console-command';
import { config } from '../config';
import { ProcessLogService } from '../services/processlog.service';
import { LogMessage } from '../services/log.message';
@Component({
selector: 'app-console',
@ -42,7 +43,7 @@ export class ConsoleComponent implements OnInit {
this.sendContent(this.console_content);
}
newLogsHandler(logs: any) {
newLogsHandler(logs: LogMessage) {
if (this.rewriteContentWithProcessLogsOnDeploy !== '') {
const log = logs[this.rewriteContentWithProcessLogsOnDeploy];
if (log) {