From 7ffd50c212ea9245d990ce9e43983964bdc697d6 Mon Sep 17 00:00:00 2001 From: Kir_Antipov Date: Fri, 28 Apr 2023 12:01:15 +0000 Subject: [PATCH] Made interface that represents Modrinth game version --- .../modrinth/modrinth-game-version.ts | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/platforms/modrinth/modrinth-game-version.ts diff --git a/src/platforms/modrinth/modrinth-game-version.ts b/src/platforms/modrinth/modrinth-game-version.ts new file mode 100644 index 0000000..f84b77e --- /dev/null +++ b/src/platforms/modrinth/modrinth-game-version.ts @@ -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; +}