mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
codegen: Correctly gen TS without defaults (#51155)
This commit is contained in:
@@ -227,8 +227,10 @@ func (ls *ExtractedLineage) GenerateTypescriptCoremodel(path string) (WriteDiffe
|
||||
}
|
||||
|
||||
// TODO until cuetsy can toposort its outputs, put the top/parent type at the bottom of the file.
|
||||
parts.Nodes = append(parts.Nodes, top.T, top.D)
|
||||
// parts.Nodes = append([]ts.Decl{top.T, top.D}, parts.Nodes...)
|
||||
parts.Nodes = append(parts.Nodes, top.T)
|
||||
if top.D != nil {
|
||||
parts.Nodes = append(parts.Nodes, top.D)
|
||||
}
|
||||
|
||||
var strb strings.Builder
|
||||
var str string
|
||||
|
||||
Reference in New Issue
Block a user