Skip to content

Commit 521f308

Browse files
committed
fix: no static field for interface too
1 parent 9872124 commit 521f308

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main/kotlin/me/ntrrgc/tsGenerator/TypeScriptGenerator.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,11 @@ class TypeScriptGenerator(
352352

353353

354354
return "$typeKeyword ${klass.binaryName()}$templateParameters$extendsString{\n" +
355-
staticFieldsOf(klass) +
356-
(if (klass.java.isInterface) "" else staticMethodsOf(klass, interfaceSupertypes)) +
355+
(if (klass.java.isInterface) "" else
356+
staticFieldsOf(klass) + staticMethodsOf(
357+
klass,
358+
interfaceSupertypes
359+
)) +
357360
constructorsOf(klass) +
358361
propertiesOf(klass) +
359362
functionsOf(klass, interfaceSupertypes) +

0 commit comments

Comments
 (0)