From 893b22f2b03cba6523909f85bbc5732252e38473 Mon Sep 17 00:00:00 2001 From: Sylvain Joyeux Date: Mon, 21 May 2018 16:50:03 -0300 Subject: [PATCH] fix typescript compilation errors --- src/autoproj.ts | 2 +- test/helpers.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/autoproj.ts b/src/autoproj.ts index 5b255c5..2b6e13d 100644 --- a/src/autoproj.ts +++ b/src/autoproj.ts @@ -475,7 +475,7 @@ export function loadWorkspaceInfo(workspacePath: string): Promise }) }).then((data) => { - let manifest = yaml.safeLoad(data.toString()); + let manifest = yaml.safeLoad(data.toString()) as any[]; if (manifest === undefined) { manifest = []; } diff --git a/test/helpers.ts b/test/helpers.ts index 3e46d36..5fe79a9 100644 --- a/test/helpers.ts +++ b/test/helpers.ts @@ -42,7 +42,7 @@ export async function assertThrowsAsync(p, msg: RegExp) : Promise } return e; } - throw new Error("expected promise failure but it succeeded") + throw new Error("expected promise failure but it succeeded") } let root; @@ -133,7 +133,7 @@ export function addPackageToManifest(ws, path : string[], partialInfo: { [key: s }; let manifestPath = Autoproj.installationManifestPath(ws.root) - let manifest = YAML.safeLoad(FS.readFileSync(manifestPath).toString()); + let manifest = YAML.safeLoad(FS.readFileSync(manifestPath).toString()) as any[]; manifest.push(result); FS.writeFileSync(manifestPath, YAML.safeDump(manifest)); ws.reload();