File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -39,3 +39,5 @@ node_modules
39
39
# Build output directory
40
40
dist /
41
41
flight-recorder-generator /output
42
+ * .d.ts
43
+ java-generator /* .js
Original file line number Diff line number Diff line change @@ -13,9 +13,12 @@ const $referencedTypes = (instance: Domain.InstanceOf) : Domain.TypeDeclaration[
13
13
. concat ( instance . closedGenerics . map ( $referencedTypes ) . flat ( Infinity ) )
14
14
. concat ( inherits ) ;
15
15
}
16
- else if ( instance instanceof Domain . ArrayOf ) return $referencedTypes ( instance . of ) . flat ( Infinity ) ;
17
- else if ( instance instanceof Domain . Dictionary ) return [ $referencedTypes ( instance . key ) , $referencedTypes ( instance . value ) ] . flat ( Infinity ) ;
18
- else if ( instance instanceof Domain . UnionOf ) return instance . items . map ( $referencedTypes ) . flat ( Infinity ) ;
16
+ else if ( instance instanceof Domain . ArrayOf ) return $referencedTypes ( instance . of )
17
+ . flat < Domain . TypeDeclaration > ( Infinity ) ;
18
+ else if ( instance instanceof Domain . Dictionary ) return [ $referencedTypes ( instance . key ) , $referencedTypes ( instance . value ) ]
19
+ . flat < Domain . TypeDeclaration > ( Infinity ) ;
20
+ else if ( instance instanceof Domain . UnionOf ) return instance . items . map ( $referencedTypes )
21
+ . flat < Domain . TypeDeclaration > ( Infinity ) ;
19
22
} ;
20
23
21
24
const $import = ( ns : string ) => `import org.elasticsearch.${ ns } .*;` ;
Original file line number Diff line number Diff line change 18
18
"@typescript-eslint/eslint-plugin" : " ^2.29.0" ,
19
19
"@typescript-eslint/parser" : " ^2.29.0" ,
20
20
"standardx" : " ^5.0.0" ,
21
- "ts-node" : " ^8.9.0 " ,
21
+ "ts-node" : " ^8.10.2 " ,
22
22
"tslint" : " ^6.0.0" ,
23
- "typescript" : " ^3.8.3 "
23
+ "typescript" : " ^3.9.5 "
24
24
},
25
25
"dependencies" : {
26
26
"change-case" : " ^4.1.1" ,
You can’t perform that action at this time.
0 commit comments