chore: Remove some of the external enum comments in typescript (#6530)

* chore: Remove some of the external enum comments in typescript

handle clibase types manually
This commit is contained in:
Steven Masley
2023-03-09 10:46:23 -06:00
committed by GitHub
parent c2787e3a8e
commit 3de29307b5
2 changed files with 10 additions and 78 deletions
+10
View File
@@ -695,6 +695,16 @@ func (g *Generator) typescriptType(ty types.Type) (TypescriptType, error) {
// These are external named types that we handle uniquely.
switch n.String() {
case "github.com/coder/coder/cli/clibase.String":
return TypescriptType{ValueType: "string"}, nil
case "github.com/coder/coder/cli/clibase.Strings":
return TypescriptType{ValueType: "string[]"}, nil
case "github.com/coder/coder/cli/clibase.Int64":
return TypescriptType{ValueType: "number"}, nil
case "github.com/coder/coder/cli/clibase.Bool":
return TypescriptType{ValueType: "boolean"}, nil
case "github.com/coder/coder/cli/clibase.Duration":
return TypescriptType{ValueType: "number"}, nil
case "net/url.URL":
return TypescriptType{ValueType: "string"}, nil
case "time.Time":