Resolved ALL eslint issues for project

This commit is contained in:
2022-08-12 23:46:55 +02:00
parent 29dfe55974
commit 3594b18872
63 changed files with 1064 additions and 800 deletions

36
src/interfaces/IGraph.ts Normal file
View File

@@ -0,0 +1,36 @@
/* eslint-disable no-use-before-define */
export enum GraphTypes {
Plays = "plays",
Duration = "duration"
}
export enum GraphValueTypes {
Number = "number",
Time = "time"
}
export interface IGraphDataset {
name: string;
data: Array<number>;
}
export interface IGraphData {
labels: Array<string>;
series: Array<IGraphDataset>;
}
export interface IGraphResponse {
success: boolean;
data: Data;
}
export interface Data {
categories: Date[];
series: Series[];
}
export interface Series {
name: string;
data: number[];
}