Skip to content

Commit cfbc3b5

Browse files
committed
Fixed typescript exporter parameter names using reserved 'with' keyword.
1 parent 16438bb commit cfbc3b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ScriptableMC-Tools-TS/src/main/kotlin/com/pixlfox/scriptablemc/TypescriptLibraryExporter.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ class TypescriptLibraryExporter(args: Array<String> = arrayOf()) {
5151
name.equals("name", true) -> "_name"
5252
name.equals("<set-?>", true) -> "value"
5353
name.equals("in", true) -> "_in"
54+
name.equals("with", true) -> "_with"
5455
else -> name
5556
}
5657

0 commit comments

Comments
 (0)