Skip to content

Commit 0e7a6d5

Browse files
committed
add missing type
1 parent 5a9c967 commit 0e7a6d5

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

apps/svelte.dev/src/lib/server/content.ts

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,63 @@ export const docs = create_docs();
153153

154154
export const examples = index.examples.children;
155155

156+
/**
157+
* Represents a Svelte package in the registry
158+
*/
159+
export interface Package {
160+
/** Package name */
161+
name: string;
162+
163+
version: string;
164+
165+
/** Package description (HTML formatted) */
166+
description?: string;
167+
168+
/** Repository URL (typically GitHub) */
169+
repo_url?: string;
170+
171+
/** Author username */
172+
authors?: string[];
173+
174+
/** Homepage URL */
175+
homepage?: string;
176+
177+
/** Weekly download count */
178+
downloads?: number;
179+
180+
/** Last update timestamp */
181+
updated: string;
182+
183+
/** Number of GitHub stars */
184+
github_stars?: number;
185+
186+
outdated?: boolean;
187+
188+
deprecated?: boolean;
189+
190+
svelte: {
191+
3: boolean;
192+
4: boolean;
193+
5: boolean;
194+
};
195+
196+
/** @deprecated DO NOT USE ON FRONTEND */
197+
svelte_range?: string;
198+
/** @deprecated DO NOT USE ON FRONTEND */
199+
kit_range?: string;
200+
/** @deprecated DO NOT USE ON FRONTEND */
201+
last_rune_check_version?: string;
202+
203+
runes: boolean;
204+
205+
/** Tags for categorizing the package */
206+
tags: string[];
207+
208+
official?: boolean;
209+
210+
typescript: boolean;
211+
}
212+
156213
/**
157214
* Checks if a semver range supports Svelte versions 3.x, 4.x, and 5.x
158215
*/

0 commit comments

Comments
 (0)