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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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"
}

View File

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