Skip to content

Commit

Permalink
chore: fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Nov 9, 2024
1 parent 80e248f commit d7f4767
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { PluginBuilder } from 'bun'
import type { Loader, PluginBuilder } from 'bun'
import type { UnimportOptions } from 'unimport'

function getLoader(path: string): string {
Expand Down Expand Up @@ -36,7 +36,7 @@ export function autoImports(options: Partial<UnimportOptions & { dts: string }>)

return {
contents: transformedFileContent.code,
loader: getLoader(args.path),
loader: getLoader(args.path) as Loader,
}
})
},
Expand Down

0 comments on commit d7f4767

Please sign in to comment.