File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed
Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,13 @@ export type LiveData = {
2121 visitors : number ;
2222} ;
2323
24- export type ReportData = Array < {
24+ type ReportDataValue = { [ value : string ] : string | number } ;
25+
26+ export type ReportData = {
2527 [ label : string ] : string ;
26- values : Array < { [ value : string ] : string | number } > ;
27- } > ;
28+ // @ts -expect-error
29+ values : ReportDataValue [ ] ;
30+ } [ ] ;
2831
2932export type MetricsMap = Record < Metrics , { label : string ; value : string } > ;
3033
Original file line number Diff line number Diff line change @@ -39,5 +39,3 @@ export type DashboardAnalyticsConfig = {
3939 afterDashboard ?: DashboardWidgets [ ] ;
4040 } ;
4141} ;
42-
43- export { PlausibleProvider , GoogleProvider } ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export interface PlausibleProvider {
55 host ?: string ;
66}
77
8- interface GoogleProvider {
8+ export interface GoogleProvider {
99 source : "google" ;
1010 propertyId : string ;
1111 credentials ?: string ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export type Properties =
1717 | "country" ;
1818
1919/* Keeping this for later */
20- /* export type Reports = "topSources" | "topPages" | "topCountries"; */
20+ export type Reports = "topSources" | "topPages" | "topCountries" ;
2121
2222export interface ChartWidget {
2323 type : "chart" ;
You can’t perform that action at this time.
0 commit comments