mirror of
https://github.com/topjohnwu/magiskbot.git
synced 2024-11-26 21:30:47 +00:00
32 lines
470 B
TypeScript
32 lines
470 B
TypeScript
interface JsdelivrFileInfo {
|
|
name: string;
|
|
hits: {
|
|
total: number;
|
|
dates: any;
|
|
};
|
|
bandwidth: any;
|
|
}
|
|
|
|
interface GithubRepo {
|
|
owner: string;
|
|
repo: string;
|
|
}
|
|
|
|
interface DetailInfo {
|
|
total: number;
|
|
type: {
|
|
apk: number;
|
|
zip: number;
|
|
};
|
|
source: {
|
|
github: number;
|
|
jsdelivr: number;
|
|
xda: number;
|
|
};
|
|
is_canary: boolean;
|
|
}
|
|
|
|
type VersionInfo = { [version: string]: DetailInfo };
|
|
|
|
type Unpacked<T> = T extends (infer U)[] ? U : T;
|