Chore: Type GA and Rudderstack analytics config (#51197)

* Chore: Type GA and Rudderstack analytics config

* rely on implicit unknown
This commit is contained in:
Josh Hunt
2022-06-22 09:27:55 +01:00
committed by GitHub
parent d4acc8b7d3
commit 26f6b91fd9
3 changed files with 18 additions and 8 deletions

View File

@@ -188,4 +188,9 @@ export interface GrafanaConfig {
unifiedAlertingEnabled: boolean;
angularSupportEnabled: boolean;
feedbackLinksEnabled: boolean;
googleAnalyticsId: string | undefined;
rudderstackWriteKey: string | undefined;
rudderstackDataPlaneUrl: string | undefined;
rudderstackSdkUrl: string | undefined;
rudderstackConfigUrl: string | undefined;
}

View File

@@ -119,6 +119,11 @@ export class GrafanaBootConfig implements GrafanaConfig {
reporting = {
enabled: true,
};
googleAnalyticsId: undefined;
rudderstackWriteKey: undefined;
rudderstackDataPlaneUrl: undefined;
rudderstackSdkUrl: undefined;
rudderstackConfigUrl: undefined;
constructor(options: GrafanaBootConfig) {
const mode = options.bootData.user.lightTheme ? 'light' : 'dark';