mirror of
https://git.bits.team/Bits/mod-manager.git
synced 2024-11-21 21:48:21 -05:00
Add versions to Mod type
This commit is contained in:
parent
66f4c2b289
commit
5f13645122
1
src/mods/mod.ts → src/mods/mod.d.ts
vendored
1
src/mods/mod.ts → src/mods/mod.d.ts
vendored
@ -3,6 +3,7 @@ declare global {
|
||||
id: string
|
||||
name: string
|
||||
fileName: string,
|
||||
version: string
|
||||
source: string,
|
||||
}
|
||||
}
|
@ -146,6 +146,7 @@ export default class ModrinthSource implements ModSource {
|
||||
|
||||
const fileName = latestFile.filename;
|
||||
const url = latestFile.url;
|
||||
const modVersion = results[0].version_number;
|
||||
|
||||
const task: DownloadTask = {
|
||||
fileName: fileName,
|
||||
@ -159,6 +160,7 @@ export default class ModrinthSource implements ModSource {
|
||||
name: await this.getProjectName(id),
|
||||
id: id,
|
||||
fileName: fileName,
|
||||
version: modVersion,
|
||||
source: this.getSourceName()
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user