Convert realtime components to TS.

This commit is contained in:
Mike Cao 2023-12-09 00:35:54 -08:00
parent e67282d7d8
commit 8d31f43f0f
12 changed files with 75 additions and 51 deletions

View file

@ -180,7 +180,7 @@ export interface DateRange {
endDate: Date;
value: string;
unit?: TimeUnit;
selectedUnit?: TimeUnit;
selectedUnit?: { num: number; unit: TimeUnit };
}
export interface QueryFilters {
@ -207,3 +207,12 @@ export interface QueryOptions {
joinSession?: boolean;
columns?: { [key: string]: string };
}
export interface RealtimeData {
pageviews: any[];
sessions: any[];
events: any[];
timestamp: number;
countries?: any[];
visitors?: any[];
}