This commit is contained in:
Michael Yang
2025-11-16 18:49:48 -08:00
parent 974ae8ef84
commit 78a75a30d8
22 changed files with 86 additions and 92 deletions

View File

@@ -309,9 +309,9 @@ func (tp ToolProperty) ToTypeScriptType() string {
return mapToTypeScriptType(tp.Type[0])
}
var types []string
for _, t := range tp.Type {
types = append(types, mapToTypeScriptType(t))
types := make([]string, len(tp.Type))
for i, t := range tp.Type {
types[i] = mapToTypeScriptType(t)
}
return strings.Join(types, " | ")
}