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 {
|
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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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.
|
||||||
|
Reference in New Issue
Block a user