mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-11-22 00:11:02 -05:00
Made an interface that splits CurseForge's "game versions"
This commit is contained in:
parent
213cba4c27
commit
aef57c8da2
1 changed files with 21 additions and 0 deletions
21
src/platforms/curseforge/curseforge-game-version-union.ts
Normal file
21
src/platforms/curseforge/curseforge-game-version-union.ts
Normal file
|
@ -0,0 +1,21 @@
|
|||
import { JavaVersion } from "@/utils/java";
|
||||
|
||||
/**
|
||||
* Represents a union of entities CurseForge treats as "game versions".
|
||||
*/
|
||||
export interface CurseForgeGameVersionUnion {
|
||||
/**
|
||||
* An array of supported game versions for this project version.
|
||||
*/
|
||||
game_versions?: string[];
|
||||
|
||||
/**
|
||||
* An array of supported java versions for this project version.
|
||||
*/
|
||||
java_versions?: (string | JavaVersion)[];
|
||||
|
||||
/**
|
||||
* The mod loaders that this version supports.
|
||||
*/
|
||||
loaders?: string[];
|
||||
}
|
Loading…
Reference in a new issue