mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-11-22 08:20:58 -05:00
Made interface that represents game version type on CurseForge
This commit is contained in:
parent
8c9835ec41
commit
759c3e315f
1 changed files with 36 additions and 0 deletions
36
src/platforms/curseforge/curseforge-game-version-type.ts
Normal file
36
src/platforms/curseforge/curseforge-game-version-type.ts
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
/**
|
||||||
|
* Represents a game version type.
|
||||||
|
*/
|
||||||
|
export interface CurseForgeGameVersionType {
|
||||||
|
/**
|
||||||
|
* The unique identifier of the game version type.
|
||||||
|
*/
|
||||||
|
id: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The name of the game version type.
|
||||||
|
*/
|
||||||
|
name: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The slug (URL-friendly name) of the game version type.
|
||||||
|
*/
|
||||||
|
slug: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A hard-coded Bukkit game version type.
|
||||||
|
*
|
||||||
|
* @remarks
|
||||||
|
*
|
||||||
|
* This is needed because, for some inexplicable reason, CurseForge API
|
||||||
|
* doesn't include Bukkit in its API response. And then they throw errors
|
||||||
|
* when we don't use it ourselves. Amazing. Just absolutely amazing.
|
||||||
|
*
|
||||||
|
* So, here we are, patching things up ourselves. *sigh*
|
||||||
|
*/
|
||||||
|
export const BUKKIT_GAME_VERSION_TYPE: CurseForgeGameVersionType = {
|
||||||
|
id: 1,
|
||||||
|
name: "Bukkit",
|
||||||
|
slug: "bukkit",
|
||||||
|
};
|
Loading…
Reference in a new issue