mirror of
https://github.com/ow-mods/ow-mod-db.git
synced 2025-12-11 20:15:24 +01:00
50 lines
882 B
TypeScript
50 lines
882 B
TypeScript
type ModDB = {
|
|
$schema: string
|
|
mods: ModInfo[];
|
|
};
|
|
|
|
type ModInfo = {
|
|
name: string;
|
|
uniqueName: string;
|
|
repo: string;
|
|
alpha?: boolean;
|
|
required?: boolean;
|
|
utility?: boolean;
|
|
parent?: string;
|
|
authorDisplay?: string;
|
|
tags: string[];
|
|
};
|
|
|
|
type Release = {
|
|
downloadUrl: string;
|
|
downloadCount: number;
|
|
version: string;
|
|
};
|
|
|
|
interface Mod extends Release {
|
|
name: string;
|
|
uniqueName: string;
|
|
description: string;
|
|
author: string;
|
|
repo: string;
|
|
latestReleaseDate: string;
|
|
firstReleaseDate: string;
|
|
latestReleaseDescription: string;
|
|
latestPrereleaseDescription: string;
|
|
alpha?: boolean;
|
|
required?: boolean;
|
|
utility?: boolean;
|
|
parent?: string;
|
|
authorDisplay?: string;
|
|
readme?: {
|
|
downloadUrl?: string;
|
|
htmlUrl?: string;
|
|
};
|
|
prerelease?: {
|
|
version: string;
|
|
downloadUrl: string;
|
|
date: string;
|
|
};
|
|
tags: string[];
|
|
}
|