Browse Source

add T type for convTypes

EUGENIO SOUZA CARVALHO 3 years ago
parent
commit
6fa20ba197
1 changed files with 2 additions and 0 deletions
  1. 2 0
      generators/typescript/utils.go

+ 2 - 0
generators/typescript/utils.go

@@ -449,6 +449,8 @@ func ConvType(typ string) string {
 		ntype = "string"
 	case "interface{}":
 		ntype = "any"
+	case "T":
+		ntype = "T"
 	default:
 		if ntype[0:3] == "map" {
 			parts := strings.Split(ntype, "|")