From 8e5f935b1dabb40d913f75a93cabc04945eacbbb Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 6 Jan 2025 14:26:50 +0000 Subject: [PATCH] chore: remove some `as any` --- src/commands/generate.ts | 5 ++++- src/main.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/commands/generate.ts b/src/commands/generate.ts index e766c897..d4ed504f 100644 --- a/src/commands/generate.ts +++ b/src/commands/generate.ts @@ -17,6 +17,9 @@ export default defineCommand({ }, async run(ctx) { ctx.args.prerender = true - await buildCommand.run!(ctx as any) + await buildCommand.run!( + // @ts-expect-error types do not match + ctx, + ) }, }) diff --git a/src/main.ts b/src/main.ts index 35630b3b..2919737c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -31,4 +31,4 @@ export const main = defineCommand({ await backgroundTasks } }, -}) as any /* TODO: Fix rollup type inline issue */ +})