Skip to content

Commit 431acd0

Browse files
Merge pull request #105 from emmanueltouzery/bean_propertypath_export_fields
bean property path extension: export the Fields class
2 parents 8516016 + 5ca29eb commit 431acd0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/BeanPropertyPathExtension.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public void emitElements(Writer writer, Settings settings, boolean exportKeyword
4646

4747
private static void emitFieldsClass(Writer writer, Settings settings) {
4848
List<String> fieldsClassLines = Arrays.asList(
49-
"class Fields {",
49+
"export class Fields {",
5050
" protected $$parent: Fields | undefined;",
5151
" protected $$name: string;",
5252
" constructor(parent?: Fields, name?: string) {",

typescript-generator-core/src/test/resources/ext/expected.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
class Fields {
2+
export class Fields {
33
protected $$parent: Fields | undefined;
44
protected $$name: string;
55
constructor(parent?: Fields, name?: string) {

0 commit comments

Comments
 (0)