Made interface that represents Modrinth game version

This commit is contained in:
Kir_Antipov 2023-04-28 12:01:15 +00:00
parent 5ff7d12b3b
commit 7ffd50c212

View file

@ -0,0 +1,26 @@
/**
* Represents a Modrinth game version.
*/
export interface ModrinthGameVersion {
/**
* The name/number of the game version.
*/
version: string;
/**
* The type of the game version.
*/
version_type: "release" | "snapshot" | "alpha" | "beta";
/**
* The date of the game version release.
*
* @remarks The date should be in the ISO-8601 format.
*/
date: string;
/**
* Whether or not this is a major version, used for Featured Versions.
*/
major: boolean;
}