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; +}