From e6e042c8563b13e8181c8623ee8707a683fc28a0 Mon Sep 17 00:00:00 2001 From: Akos Kitta Date: Fri, 30 Aug 2019 10:41:05 +0200 Subject: [PATCH] Moved `System` declaration before its use-site. Signed-off-by: Akos Kitta --- arduino-ide-extension/src/node/daemon-log.ts | 36 ++++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/arduino-ide-extension/src/node/daemon-log.ts b/arduino-ide-extension/src/node/daemon-log.ts index fb3f4419..0824ffe8 100644 --- a/arduino-ide-extension/src/node/daemon-log.ts +++ b/arduino-ide-extension/src/node/daemon-log.ts @@ -30,24 +30,6 @@ export namespace DaemonLog { } - export interface Tool { - readonly version: string; - readonly systems: System[]; - } - - export namespace Tool { - - export function is(arg: any | undefined): arg is Tool { - return !!arg && typeof arg.version === 'string' && 'systems' in arg; - } - - export function toString(tool: Tool): string { - const { version, systems } = tool; - return `Version: ${version}${!!systems ? ` Systems: [${tool.systems.map(System.toString).join(', ')}]` : ''}`; - } - - } - export interface System { readonly os: string; // readonly Resource: Resource; @@ -59,6 +41,24 @@ export namespace DaemonLog { } } + export interface Tool { + readonly version: string; + readonly systems: System[]; + } + + export namespace Tool { + + export function is(arg: any | undefined): arg is Tool { + return !!arg && typeof arg.version === 'string' && 'systems' in arg; + } + + export function toString(tool: Tool): string { + const { version, systems } = tool; + return `Version: ${version}${!!systems ? ` Systems: [${tool.systems.map(System.toString).join(', ')}]` : ''}`; + } + + } + export type Level = 'trace' | 'debug' | 'info' | 'warning' | 'error'; export function is(arg: any | undefined): arg is DaemonLog {