summaryrefslogtreecommitdiffstats
path: root/src/lib/search/types.ts
blob: cc30ae5169331faa86661a282a7ef6ff06bd56a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import type { Extension } from '$lib/types';

/**
 * Extension enriched with repository and source information
 */
export interface EnrichedExtension extends Extension {
    repoUrl: string;
    sourceName: string;
    formattedSourceName: string;
    category: string;
}

/**
 * Repository information from data.json
 */
export interface RepoInfo {
    name: string;
    path: string;
    commit: string;
}

/**
 * Repository data grouped by category
 */
export interface RepoData {
    [category: string]: RepoInfo[];
}