fix: Add more golang types -> number ts type (#1108)

This commit is contained in:
Garrett Delfosse
2022-04-22 16:01:43 -05:00
committed by GitHub
parent 95a24cb43a
commit e181007de1
2 changed files with 3 additions and 3 deletions

View File

@ -183,7 +183,7 @@ func toTsType(fieldType string) string {
switch fieldType { switch fieldType {
case "bool": case "bool":
return "boolean" return "boolean"
case "uint64", "uint32", "float64": case "int", "int8", "int16", "int32", "int64", "uint", "uint8", "uint16", "uint32", "uint64", "uintptr", "float32", "float64":
return "number" return "number"
} }

View File

@ -73,8 +73,8 @@ export interface TemplateVersion {
// From codersdk/users.go:17:6. // From codersdk/users.go:17:6.
export interface UsersRequest { export interface UsersRequest {
readonly search: string readonly search: string
readonly limit: int readonly limit: number
readonly offset: int readonly offset: number
} }
// From codersdk/users.go:32:6. // From codersdk/users.go:32:6.