mirror of
https://github.com/coder/coder.git
synced 2025-07-08 11:39:50 +00:00
* chore: types generated handling readonly slices * add -update flag to update goldens * revert excess gens * fix: update most UI types to account for readonly modifiers * fix: remove accidental mutation from NavBarView * fix: remove mutation warning for BatchUpdateConfirmation stories * fix: remove mutation warning for BactchUpdateConfirmation * fix: format ActiveUserChart * fix: update import to make linter happy * fix: update fmt issue * fix: disable file write lint rule from unit test --------- Co-authored-by: Parkreiner <throwawayclover@gmail.com>
29 lines
461 B
Go
29 lines
461 B
Go
package codersdk
|
|
|
|
type Buzz struct {
|
|
Foo `json:"foo"`
|
|
Bazz string `json:"bazz"`
|
|
}
|
|
|
|
type Foo struct {
|
|
Bar string `json:"bar"`
|
|
}
|
|
|
|
type FooBuzz[R Custom] struct {
|
|
Something []R `json:"something"`
|
|
}
|
|
|
|
type Custom interface {
|
|
Foo | Buzz
|
|
}
|
|
|
|
// Not yet supported
|
|
//type FooBuzzMap[R Custom] struct {
|
|
// Something map[string]R `json:"something"`
|
|
//}
|
|
|
|
// Not yet supported
|
|
//type FooBuzzAnonymousUnion[R Foo | Buzz] struct {
|
|
// Something []R `json:"something"`
|
|
//}
|