exported types

This commit is contained in:
2024-01-24 13:09:14 +01:00
parent 38ff58b168
commit f5c8d4fedf
6 changed files with 49 additions and 32 deletions

View File

@@ -150,36 +150,8 @@
<script lang="ts" setup>
import { onMounted, ref, UnwrapRef, watch } from 'vue'
interface Package {
pkgbase: string
repo: string
split_packages: Array<string>
status:
| 'latest'
| 'failed'
| 'build'
| 'skipped'
| 'delayed'
| 'building'
| 'signing'
| 'unknown'
| 'queued'
skip_reason: string
lto: 'enabled' | 'unknown' | 'disabled' | 'auto_disabled'
debug_symbols: 'available' | 'unknown' | 'not_available'
arch_version: string
repo_version: string
build_date: string
peak_mem: any
}
interface Packages {
packages: Array<Package>
total: number
offset: number
limit: number
}
import { type Package } from '@/types/Package'
import { type Packages } from '@/types/Packages'
const inputPkgBase = ref('')
const selectRepo = ref({ title: 'Repository (any)', value: 'any' })
@@ -236,7 +208,7 @@ const searchPackages = (offset: number) => {
throw new Error(response.statusText)
}
})
.then((json) => {
.then((json: Packages) => {
if (!json) return
if (pagesMax.value !== json.total) {