mirror of
https://github.com/Snigdha-OS/package-browser.git
synced 2025-09-06 04:35:17 +02:00
types.ts: Replace type with enum
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
// Type alias for repository categories
|
// Type alias for repository categories
|
||||||
export type Repository = 'core' | 'extra' | 'community' | 'multilib';
|
export enum Repository {
|
||||||
|
All = 'all',
|
||||||
|
Core = 'core',
|
||||||
|
Extra = 'extra',
|
||||||
|
Community = 'community',
|
||||||
|
Multilib = 'multilib'
|
||||||
|
}
|
||||||
|
|
||||||
// Interface representing a single package
|
// Interface representing a single package
|
||||||
export interface Package {
|
export interface Package {
|
||||||
|
Reference in New Issue
Block a user