Files
seasoned/src/interfaces/IGraph.ts
Kevin 8e586811ec Feat: vite & upgraded dependencies (#100)
* On every route change, update local variables from query params

* ResultSection is keyed to query to force re-render

* Resolved lint warnings

* replace webpack w/ vite

* update all imports with alias @ and scss

* vite environment variables, also typed

* upgraded eslint, defined new rules & added ignore comments

* resolved linting issues

* moved index.html to project root

* updated dockerfile w/ build stage before runtime image definition

* sign drone config
2026-02-23 20:53:19 +01:00

35 lines
493 B
TypeScript

export enum GraphTypes {
Plays = "plays",
Duration = "duration"
}
export enum GraphValueTypes {
Number = "number",
Time = "time"
}
export interface IGraphDataset {
name: string;
data: number[];
}
export interface IGraphData {
labels: string[];
series: IGraphDataset[];
}
export interface IGraphResponse {
success: boolean;
data: Data;
}
export interface Data {
categories: Date[];
series: Series[];
}
export interface Series {
name: string;
data: number[];
}