Skip to content

Commit ad74acb

Browse files
committed
Add regexp
1 parent 02237b7 commit ad74acb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/apitypings/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,8 @@ func (g *Generator) typescriptType(ty types.Type) (TypescriptType, error) {
830830
// We would need to add more logic to determine this, but for now
831831
// just hard code them.
832832
switch n.String() {
833+
case "github.com/coder/coder/v2/cli/clibase.Regexp":
834+
return TypescriptType{ValueType: "string"}, nil
833835
case "github.com/coder/coder/v2/cli/clibase.HostPort":
834836
// Custom marshal json to be a string
835837
return TypescriptType{ValueType: "string"}, nil

0 commit comments

Comments
 (0)