mirror of
https://github.com/supabase/supabase.git
synced 2026-05-19 11:30:47 +08:00
18 lines
365 B
TypeScript
18 lines
365 B
TypeScript
export type DataPoint = {
|
|
period_start: string
|
|
periodStartFormatted?: string
|
|
} & {
|
|
// Attribute name will be the key
|
|
[key: string]: string | number
|
|
}
|
|
|
|
export interface AnalyticsData {
|
|
data: DataPoint[]
|
|
format: string
|
|
total: number
|
|
yAxisLimit: number
|
|
hasNoData?: boolean
|
|
}
|
|
|
|
export type AnalyticsInterval = '1m' | '5m' | '10m' | '30m' | '1h' | '1d'
|