Skip to content

Commit e6e042c

Browse files
author
Akos Kitta
committed
Moved System declaration before its use-site.
Signed-off-by: Akos Kitta <[email protected]>
1 parent 9298a8c commit e6e042c

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

arduino-ide-extension/src/node/daemon-log.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,17 @@ export namespace DaemonLog {
3030

3131
}
3232

33+
export interface System {
34+
readonly os: string;
35+
// readonly Resource: Resource;
36+
}
37+
38+
export namespace System {
39+
export function toString(system: System): string {
40+
return `OS: ${system.os}`
41+
}
42+
}
43+
3344
export interface Tool {
3445
readonly version: string;
3546
readonly systems: System[];
@@ -38,7 +49,7 @@ export namespace DaemonLog {
3849
export namespace Tool {
3950

4051
export function is(arg: any | undefined): arg is Tool {
41-
return !!arg && typeof arg.version === 'string' && 'systems' in arg;
52+
return !!arg && typeof arg.version === 'string' && 'systems' in arg;
4253
}
4354

4455
export function toString(tool: Tool): string {
@@ -48,17 +59,6 @@ export namespace DaemonLog {
4859

4960
}
5061

51-
export interface System {
52-
readonly os: string;
53-
// readonly Resource: Resource;
54-
}
55-
56-
export namespace System {
57-
export function toString(system: System): string {
58-
return `OS: ${system.os}`
59-
}
60-
}
61-
6262
export type Level = 'trace' | 'debug' | 'info' | 'warning' | 'error';
6363

6464
export function is(arg: any | undefined): arg is DaemonLog {

0 commit comments

Comments
 (0)