From 7845a0d3ddfe1c19d9d9f2043ec53ad809f3f183 Mon Sep 17 00:00:00 2001 From: Star Date: Wed, 10 Dec 2025 16:54:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA=20ts=20=E6=97=B6=20export=20?= =?UTF-8?q?interface?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- makeTS.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makeTS.go b/makeTS.go index 59e102c..d931789 100644 --- a/makeTS.go +++ b/makeTS.go @@ -336,7 +336,7 @@ func makeClass(t reflect.Type, existsClasses *map[string]string, sameClassIndex if len(implements) > 0 { implementsStr = " extends " + strings.Join(implements, ", ") } - newClass := append([]string{}, "interface "+useTypeName+implementsStr+" {") + newClass := append([]string{}, "export interface "+useTypeName+implementsStr+" {") newClass = append(newClass, classItems...) newClass = append(newClass, "}") *classes = append(*classes, strings.Join(newClass, "\n"))