Skip to content

Commit

Permalink
nodeJs: write static type$ field in d.ts file
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Giannini authored and Matthew Giannini committed Mar 8, 2024
1 parent b6c3d5d commit 3b81225
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/nodeJs/fan/ts/CompileTsPlugin.fan
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ class CompileTsPlugin : CompilerStep
}

// Write fields
if (true)
{
// write <Class>.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 &&
Expand Down

0 comments on commit 3b81225

Please sign in to comment.