mirror of
https://github.com/coder/coder.git
synced 2026-06-05 14:08:20 +00:00
411ce46442
Adds a health check for workspace proxies: - Healthy iff all proxies are healthy and the same version, - Warning if some proxies are unhealthy, - Error if all proxies are unhealthy, or do not all have the same version.
APITypings
This main.go generates typescript types from the codersdk types in Go.
Features
- Supports Go types
- Basics (string/int/etc)
- Maps
- Slices
- Enums
- Pointers
- External Types (uses
anyatm)- Some custom external types are hardcoded in (eg: time.Time)
Type overrides
type Foo struct {
// Force the typescript type to be a number
CreatedAt time.Duration `json:"created_at" typescript:"number"`
}
Ignore Types
Do not generate ignored types.
// @typescript-ignore InternalType
type InternalType struct {
// ...
}
Future Ideas
- Use a yaml config for overriding certain types