ow-mod-db/fetch-mods/globals.d.ts
Damián Garro e2fa834d94
Don't remove schema in generated PR (#467)
* Don't remove schema in generated PR

* Also add $schema to globals's ModDB
2022-10-15 08:19:28 +02:00

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[];
}