@@ -30,7 +30,7 @@ let META_KEYS = new Set();
3030// emitted as named type aliases in the output. Each anchor specifies a
3131// PascalCase type name and a `match(key, path, values)` predicate. If multiple
3232// enumerated attributes match the predicate, the one with the largest set of values
33- // is chosen.
33+ // is chosen.
3434// ---------------------------------------------------------------------------
3535
3636const COMMON_TYPE_ANCHORS = [
@@ -70,14 +70,7 @@ const ATTR_NAME_OVERRIDES = new Map([['marker.symbol', 'MarkerSymbol']]);
7070 * Inside the namespace, sibling references are bare (`line?: Line`); outside,
7171 * references are prefixed (`marker?: _internal.Marker`) via `refName()`.
7272 */
73- const INTERNAL_INTERFACES = new Set ( [
74- 'AutoRangeOptions' ,
75- 'ErrorY' ,
76- 'Lighting' ,
77- 'Line' ,
78- 'Marker' ,
79- 'Stream'
80- ] ) ;
73+ const INTERNAL_INTERFACES = new Set ( [ 'AutoRangeOptions' , 'ErrorY' , 'Lighting' , 'Line' , 'Marker' , 'Stream' ] ) ;
8174
8275function refName ( name , inInternalNamespace ) {
8376 if ( inInternalNamespace ) return name ;
@@ -807,7 +800,14 @@ function attrsToProperties(attrs, indent, pathPrefix, sharedTypes, fieldOverride
807800 lines . push ( `${ indent } ${ key } ?: ${ refName ( sharedName , inInternalNamespace ) } [];` ) ;
808801 continue ;
809802 }
810- const nested = attrsToProperties ( itemChild , indent + ' ' , attrPath , sharedTypes , undefined , inInternalNamespace ) ;
803+ const nested = attrsToProperties (
804+ itemChild ,
805+ indent + ' ' ,
806+ attrPath ,
807+ sharedTypes ,
808+ undefined ,
809+ inInternalNamespace
810+ ) ;
811811 if ( nested . length > 0 ) {
812812 lines . push ( ...formatJSDoc ( val , indent ) ) ;
813813 lines . push ( `${ indent } ${ key } ?: Array<{` ) ;
0 commit comments