Skip to content

Commit 243b23a

Browse files
authored
fix: add missing import (#842)
1 parent cbec1ab commit 243b23a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

app/composables/useCharts.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { MaybeRefOrGetter } from 'vue'
22
import { toValue } from 'vue'
3+
import { fetchNpmDownloadsRange } from '~/utils/npm/api'
34

45
export type PackumentLikeForTime = {
56
time?: Record<string, string>
@@ -45,12 +46,6 @@ export type PackageDownloadEvolutionOptions =
4546

4647
type DailyDownloadsResponse = { downloads: Array<{ day: string; downloads: number }> }
4748

48-
declare function fetchNpmDownloadsRange(
49-
packageName: string,
50-
startIso: string,
51-
endIso: string,
52-
): Promise<DailyDownloadsResponse>
53-
5449
function toIsoDateString(date: Date): string {
5550
return date.toISOString().slice(0, 10)
5651
}

0 commit comments

Comments
 (0)