summaryrefslogtreecommitdiffstats
path: root/src/lib/search/types.ts
diff options
context:
space:
mode:
authorGravatar amrkmn 2025-12-26 22:39:23 +0800
committerGravatar amrkmn 2025-12-26 22:39:23 +0800
commit32ca410f4edbff578d71781d943c41573912f476 (patch)
tree49f7e1e5602657d23945082fe273fc4802959a40 /src/lib/search/types.ts
Initial commitmain
Diffstat (limited to 'src/lib/search/types.ts')
-rw-r--r--src/lib/search/types.ts27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/lib/search/types.ts b/src/lib/search/types.ts
new file mode 100644
index 0000000..cc30ae5
--- /dev/null
+++ b/src/lib/search/types.ts
@@ -0,0 +1,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[];
+}