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:
Steven Masley
2024-07-23 05:07:52 -10:00
committed by GitHub
parent b817c863ef
commit ecc356f5a9
5 changed files with 196 additions and 3 deletions

View File

@ -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,