From 517cfb850d7c6fb13c609f33b71f23a440e67af5 Mon Sep 17 00:00:00 2001 From: Daniel Nalborczyk Date: Sun, 23 Jan 2022 10:07:28 -0500 Subject: [PATCH] remove type assertion --- cli/run/waitForInput.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/run/waitForInput.ts b/cli/run/waitForInput.ts index 946ee79423d..69fdd9254c2 100644 --- a/cli/run/waitForInput.ts +++ b/cli/run/waitForInput.ts @@ -1,5 +1,5 @@ -import { PluginContext } from 'rollup'; -import { NormalizedInputOptions, Plugin } from '../../src/rollup/types'; +import type { PluginContext } from 'rollup'; +import type { NormalizedInputOptions, Plugin } from '../../src/rollup/types'; import { bold } from '../../src/utils/colors'; import { stderr } from '../logging'; @@ -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) {