mirror of
https://github.com/starshardstudio/peafowl.git
synced 2024-11-29 00:14:17 +00:00
34 lines
671 B
TypeScript
34 lines
671 B
TypeScript
|
import {Progress} from "./progress.ts"
|
||
|
import {ReviewData} from "./review.ts"
|
||
|
|
||
|
|
||
|
export interface GameBaseIdentifier {
|
||
|
platform: string,
|
||
|
synced_on?: string,
|
||
|
}
|
||
|
|
||
|
export interface GameSteamIdentifier extends GameBaseIdentifier {
|
||
|
platform: "steam",
|
||
|
appid: string,
|
||
|
name?: string,
|
||
|
}
|
||
|
|
||
|
export type GameIdentifier = GameSteamIdentifier;
|
||
|
|
||
|
export interface GameData extends ReviewData {
|
||
|
active?: boolean,
|
||
|
|
||
|
progress?: Progress,
|
||
|
hours_played?: number
|
||
|
|
||
|
purchased_on?: Date,
|
||
|
started_on?: Date,
|
||
|
beaten_on?: Date,
|
||
|
completed_on?: Date,
|
||
|
mastered_on?: Date,
|
||
|
|
||
|
identifiers?: GameIdentifier[]
|
||
|
}
|
||
|
|
||
|
export type GamePage = Lume.Page<GameData>
|