Files
drop-app/types.d.ts
2024-10-17 21:05:25 +11:00

34 lines
670 B
TypeScript

import type { User } from "@prisma/client";
import type { Component } from "vue";
export type NavigationItem = {
prefix: string;
route: string;
label: string;
};
export type QuickActionNav = {
icon: Component;
notifications?: number;
action: () => Promise<void>;
};
export type AppState = {
status: AppStatus;
user?: User;
};
export enum AppStatus {
NotConfigured = "NotConfigured",
SignedOut = "SignedOut",
SignedIn = "SignedIn",
SignedInNeedsReauth = "SignedInNeedsReauth",
}
export enum GameStatus {
Remote = "Remote",
Downloading = "Downloading",
Installed = "Installed",
Updating = "Updating",
Uninstalling = "Uninstalling",
}