File tree Expand file tree Collapse file tree 1 file changed +57
-0
lines changed
apps/svelte.dev/src/lib/server Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,63 @@ export const docs = create_docs();
153
153
154
154
export const examples = index . examples . children ;
155
155
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
+
156
213
/**
157
214
* Checks if a semver range supports Svelte versions 3.x, 4.x, and 5.x
158
215
*/
You can’t perform that action at this time.
0 commit comments