feat: migrated packages to ts

This commit is contained in:
Haoyu Xu
2025-05-02 02:27:42 +08:00
parent 0af0c785d4
commit 8f6f537c81
111 changed files with 3166 additions and 1155 deletions

35
packages/assets/types.ts Normal file
View File

@@ -0,0 +1,35 @@
export type Config = {
dynchars: string
item_to_download: ItemToDownload[]
additional_regex: string[]
}
export type ItemToDownload = string
export type UpdateList = {
versionId: string
abInfos: AbInfosItem[]
manifestName: string
manifestVersion: string
packInfos: PackInfosItem[]
}
export type AbInfosItem = {
name: string
hash: string
md5: string
totalSize: number
abSize: number
cid: number
cat?: number
pid?: string
}
export type PackInfosItem = {
name: string
hash: string
md5: string
totalSize: number
abSize: number
cid: number
}