[READ-ONLY] a fast, modern browser for the npm registry
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: add missing import (#842)

authored by

Alec Lloyd Probert and committed by
GitHub
243b23a6 cbec1ab4

+1 -6
+1 -6
app/composables/useCharts.ts
··· 1 1 import type { MaybeRefOrGetter } from 'vue' 2 2 import { toValue } from 'vue' 3 + import { fetchNpmDownloadsRange } from '~/utils/npm/api' 3 4 4 5 export type PackumentLikeForTime = { 5 6 time?: Record<string, string> ··· 44 45 | PackageDownloadEvolutionOptionsYear 45 46 46 47 type DailyDownloadsResponse = { downloads: Array<{ day: string; downloads: number }> } 47 - 48 - declare function fetchNpmDownloadsRange( 49 - packageName: string, 50 - startIso: string, 51 - endIso: string, 52 - ): Promise<DailyDownloadsResponse> 53 48 54 49 function toIsoDateString(date: Date): string { 55 50 return date.toISOString().slice(0, 10)