File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed
Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -63,19 +63,18 @@ function handleTyped(type: Node): Typed {
6363 } ;
6464}
6565
66- function handleAdditionalTypes ( node :Node ) {
67- const additionalTypes = [ ]
68- for ( const child of node . children ) {
69- if ( child . name === "additionalType" ) {
70- additionalTypes . push ( string ( child . values [ 0 ] ) ) ;
71- }
72-
66+ function handleAdditionalTypes ( node : Node ) {
67+ const additionalTypes = [ ] ;
68+ for ( const child of node . children ) {
69+ if ( child . name === "additionalType" ) {
70+ additionalTypes . push ( string ( child . values [ 0 ] ) ) ;
71+ }
7372 }
74- // Check if additionalTypes has elements and return array if so, otherwise undefined/empty.
75- if ( additionalTypes . length > 0 ) {
76- return { additionalTypes} ;
77- }
78- return undefined ;
73+ // Check if additionalTypes has elements and return array if so, otherwise undefined/empty.
74+ if ( additionalTypes . length > 0 ) {
75+ return { additionalTypes } ;
76+ }
77+ return undefined ;
7978}
8079
8180function handleTypeParameters ( value : Value | Node ) {
@@ -305,7 +304,7 @@ function handleMethod(child: Node): DeepPartial<OverridableMethod> {
305304 "string" ,
306305 c . properties ?. overrideType ,
307306 ) ,
308- ...handleAdditionalTypes ( c )
307+ ...handleAdditionalTypes ( c ) ,
309308 } ) ;
310309 break ;
311310
You can’t perform that action at this time.
0 commit comments