diff --git a/src/nodeJs/fan/ts/CompileTsPlugin.fan b/src/nodeJs/fan/ts/CompileTsPlugin.fan index 6b36efdd3..b068000be 100644 --- a/src/nodeJs/fan/ts/CompileTsPlugin.fan +++ b/src/nodeJs/fan/ts/CompileTsPlugin.fan @@ -92,6 +92,12 @@ class CompileTsPlugin : CompilerStep } // Write fields + if (true) + { + // write .type$ field for use in TypeScript + t := getNamespacedType("Type", "sys", this.pod) + out.print(" static type\$: ${t}\n") + } fields := type.fields.findAll |field| { field.isPublic &&