mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
FeatureToggles: remove open type declaration (#64645)
This commit is contained in:
@@ -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"
|
||||
)
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user