mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-11 05:16:34 +00:00
Moved System
declaration before its use-site.
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
parent
9298a8cc55
commit
e6e042c856
@ -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 {
|
export interface Tool {
|
||||||
readonly version: string;
|
readonly version: string;
|
||||||
readonly systems: System[];
|
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 type Level = 'trace' | 'debug' | 'info' | 'warning' | 'error';
|
||||||
|
|
||||||
export function is(arg: any | undefined): arg is DaemonLog {
|
export function is(arg: any | undefined): arg is DaemonLog {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user