mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
chore: generate rbac resource types to typescript (#13975)
* chore: generate rbac resource types to typescript The existing typesGenerated.ts cannot support this as the generator only inspects the types, not the values. So traversing the value AST would have to be added. The rbac gen is already used for the sdk, this extends it to the typescript
This commit is contained in:
@ -39,6 +39,10 @@ type ActionDefinition struct {
|
||||
Description string
|
||||
}
|
||||
|
||||
func (d ActionDefinition) String() string {
|
||||
return d.Description
|
||||
}
|
||||
|
||||
func actDef(description string) ActionDefinition {
|
||||
return ActionDefinition{
|
||||
Description: description,
|
||||
|
Reference in New Issue
Block a user