Chore: Add descriptions to frontend types for feature toggle generation (#102230)

Add descriptions to frontend types for feature toggle generation
This commit is contained in:
Tom Ratcliffe
2025-03-18 09:20:47 +02:00
committed by GitHub
parent 3454030bc2
commit e14b2fa034
2 changed files with 808 additions and 0 deletions
File diff suppressed because it is too large Load Diff
@@ -289,6 +289,15 @@ func generateTypeScript() string {
export interface FeatureToggles {
`
for _, flag := range standardFeatureFlags {
buf += " /**\n"
buf += " * " + flag.Description + "\n"
if flag.Stage == FeatureStageDeprecated {
buf += " * @deprecated\n"
}
if flag.Expression != "" {
buf += " * @default " + flag.Expression + "\n"
}
buf += " */\n"
buf += " " + getTypeScriptKey(flag.Name) + "?: boolean;\n"
}