From c6007a20254bd92c84dfdd82fece6207c0f106be Mon Sep 17 00:00:00 2001 From: Amir Moualem Date: Sun, 28 Jun 2020 17:12:21 +0300 Subject: [PATCH] chore: adding types --- src/cli/commands/monitor/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/commands/monitor/index.ts b/src/cli/commands/monitor/index.ts index 446497a526a..723195b89eb 100644 --- a/src/cli/commands/monitor/index.ts +++ b/src/cli/commands/monitor/index.ts @@ -302,7 +302,7 @@ function generateMonitorMeta(options, packageManager?): MonitorMeta { }; } -function validateMonitorPath(path, isDocker) { +function validateMonitorPath(path: string, isDocker?: boolean): void { const exists = fs.existsSync(path); if (!exists && !isDocker) { throw new Error('"' + path + '" is not a valid path for "snyk monitor"');