@@ -292,7 +292,7 @@ function getDiff(pair) {
292
292
${ joinedResult }
293
293
\`\`\`` ;
294
294
}
295
- diffs . push ( { iname, result : joinedResult , simplifiedName} ) ;
295
+ diffs . push ( { iname, result : joinedResult , simplifiedName : ` ${ name . replace ( '/dist/api.json' , '' ) } : ${ simplifiedName } ` } ) ;
296
296
} ) ;
297
297
298
298
return { diffs, name} ;
@@ -535,9 +535,20 @@ function rebuildInterfaces(json) {
535
535
let name = property . name ;
536
536
let optional = property . optional ;
537
537
let defaultVal = property . default ;
538
- let value = processType ( property . value ) ;
539
- // TODO: what to do with defaultVal and optional
540
- funcInterface [ name ] = { optional, defaultVal, value} ;
538
+ // this needs to handle types like spreads, but need to build that into the build API's first
539
+ if ( ! property . value ) {
540
+ name = 'UNKNOWN' ;
541
+ let i = 0 ;
542
+ while ( funcInterface [ name ] ) {
543
+ i ++ ;
544
+ name = 'UNKNOWN' + String ( i ) ;
545
+ }
546
+ funcInterface [ name ] = { optional, defaultVal, value : property . type } ;
547
+ } else {
548
+ let value = processType ( property . value ) ;
549
+ // TODO: what to do with defaultVal and optional
550
+ funcInterface [ name ] = { optional, defaultVal, value} ;
551
+ }
541
552
} ) ;
542
553
let name = item . name ?? key ;
543
554
if ( item . typeParameters ?. length > 0 ) {
0 commit comments