mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user