Moved System declaration before its use-site.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta 2019-08-30 10:41:05 +02:00
parent 9298a8cc55
commit e6e042c856

View File

@ -30,6 +30,17 @@ export namespace DaemonLog {
}
export interface System {
readonly os: string;
// readonly Resource: Resource;
}
export namespace System {
export function toString(system: System): string {
return `OS: ${system.os}`
}
}
export interface Tool {
readonly version: string;
readonly systems: System[];
@ -48,17 +59,6 @@ export namespace DaemonLog {
}
export interface System {
readonly os: string;
// readonly Resource: Resource;
}
export namespace System {
export function toString(system: System): string {
return `OS: ${system.os}`
}
}
export type Level = 'trace' | 'debug' | 'info' | 'warning' | 'error';
export function is(arg: any | undefined): arg is DaemonLog {