Made an interface that splits CurseForge's "game versions"

This commit is contained in:
Kir_Antipov 2023-04-10 11:58:19 +00:00
parent 213cba4c27
commit aef57c8da2

View 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[];
}