Skip to content

Commit 6be45ef

Browse files
authored
Add more golang types -> number ts type
1 parent d6c1c49 commit 6be45ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/apitypings/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ func toTsType(fieldType string) string {
183183
switch fieldType {
184184
case "bool":
185185
return "boolean"
186-
case "uint64", "uint32", "float64":
186+
case "int", "int8", "int16", "int32", "int64", "uint", "uint8", "uint16", "uint32", "uint64", "uintptr", "float32", "float64":
187187
return "number"
188188
}
189189

0 commit comments

Comments
 (0)