mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-07-02 06:16:23 +00:00
Make log messages typed
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user