Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianGonz97 committed Aug 22, 2024
1 parent 47594e3 commit 69a8b11
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/adders/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import type { AdderWithoutExplicitArgs } from '@svelte-cli/core';

// Rolldown doesn't support dynamic import vars yet.
export async function getAdderDetails(name: string) {
export async function getAdderDetails(name: string): Promise<AdderWithoutExplicitArgs> {
let adder;
switch (name) {
case 'drizzle':
Expand Down Expand Up @@ -33,5 +35,5 @@ export async function getAdderDetails(name: string) {
throw new Error(`invalid adder name: ${name}`);
}

return adder.default;
return adder.default as AdderWithoutExplicitArgs;
}

0 comments on commit 69a8b11

Please sign in to comment.