mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
fix: Add more golang types -> number ts type (#1108)
This commit is contained in:
@ -183,7 +183,7 @@ func toTsType(fieldType string) string {
|
||||
switch fieldType {
|
||||
case "bool":
|
||||
return "boolean"
|
||||
case "uint64", "uint32", "float64":
|
||||
case "int", "int8", "int16", "int32", "int64", "uint", "uint8", "uint16", "uint32", "uint64", "uintptr", "float32", "float64":
|
||||
return "number"
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user