We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbec1ab commit 243b23aCopy full SHA for 243b23a
app/composables/useCharts.ts
@@ -1,5 +1,6 @@
1
import type { MaybeRefOrGetter } from 'vue'
2
import { toValue } from 'vue'
3
+import { fetchNpmDownloadsRange } from '~/utils/npm/api'
4
5
export type PackumentLikeForTime = {
6
time?: Record<string, string>
@@ -45,12 +46,6 @@ export type PackageDownloadEvolutionOptions =
45
46
47
type DailyDownloadsResponse = { downloads: Array<{ day: string; downloads: number }> }
48
-declare function fetchNpmDownloadsRange(
49
- packageName: string,
50
- startIso: string,
51
- endIso: string,
52
-): Promise<DailyDownloadsResponse>
53
-
54
function toIsoDateString(date: Date): string {
55
return date.toISOString().slice(0, 10)
56
}
0 commit comments