degmods.com/src/types/mod.ts
2024-08-06 15:46:38 +05:00

37 lines
644 B
TypeScript

export interface ModFormState {
dTag: string
aTag: string
rTag: string
game: string
title: string
body: string
featuredImageUrl: string
summary: string
nsfw: boolean
screenshotsUrls: string[]
tags: string
downloadUrls: DownloadUrl[]
}
export interface DownloadUrl {
url: string
hash: string
signatureKey: string
malwareScanLink: string
modVersion: string
customNote: string
}
export interface ModDetails extends Omit<ModFormState, 'tags'> {
id: string
published_at: number
edited_at: number
author: string
tags: string[]
}
export interface MuteLists {
authors: string[]
eventIds: string[]
}