From 5cb41675dd1769cbe3e044e38e59f3464d9187ce Mon Sep 17 00:00:00 2001 From: Daniel Nalborczyk Date: Sun, 23 Jan 2022 10:10:25 -0500 Subject: [PATCH] remove type assertion --- cli/run/waitForInput.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/run/waitForInput.ts b/cli/run/waitForInput.ts index 946ee79423d..36499252edd 100644 --- a/cli/run/waitForInput.ts +++ b/cli/run/waitForInput.ts @@ -8,9 +8,9 @@ export function waitForInputPlugin(): Plugin { async buildStart(this: PluginContext, options: NormalizedInputOptions) { const inputSpecifiers = Array.isArray(options.input) ? options.input - : Object.keys(options.input as { [entryAlias: string]: string }); + : Object.keys(options.input); - let lastAwaitedSpecifier = null; + let lastAwaitedSpecifier: string | null = null; checkSpecifiers: while (true) { for (const specifier of inputSpecifiers) { if ((await this.resolve(specifier)) === null) {