FeatureToggles: remove open type declaration (#64645)

This commit is contained in:
Ryan McKinley
2023-03-14 10:47:32 -07:00
committed by GitHub
parent 85e5326040
commit 6751a93d49
6 changed files with 17 additions and 15 deletions

View File

@@ -22,4 +22,5 @@ const (
hostedGrafanaTeam codeowner = "@grafana/hosted-grafana-team"
awsPluginsSquad codeowner = "@grafana/aws-plugins"
appO11ySquad codeowner = "@grafana/app-o11y"
grafanaPartnerPluginsSquad codeowner = "@grafana/partner-plugins"
)

View File

@@ -128,13 +128,15 @@ func generateTypeScript() string {
* conf/custom.ini to enable features under development or not yet available in
* stable version.
*
* Only enabled values will be returned in this interface
* Only enabled values will be returned in this interface.
*
* NOTE: the possible values may change between versions without notice, although
* this may cause compilation issues when depending on removed feature keys, the
* runtime state will continue to work.
*
* @public
*/
export interface FeatureToggles {
[name: string]: boolean | undefined; // support any string value
`
for _, flag := range standardFeatureFlags {
buf += " " + getTypeScriptKey(flag.Name) + "?: boolean;\n"