File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,11 @@ export interface LegendItem {
1414 classes : string [ ] ;
1515}
1616
17- const ignoredClasses = [
18- 'tsd-parent-kind-external- module' ,
17+ const ignoredClasses = new Set ( [
18+ 'tsd-parent-kind-module' ,
1919 'tsd-is-not-exported' ,
2020 'tsd-is-overwrite'
21- ] ;
21+ ] ) ;
2222
2323const completeLegend : LegendItem [ ] [ ] = [
2424 [
@@ -100,7 +100,7 @@ export class LegendBuilder {
100100
101101 registerCssClasses ( classArray : string [ ] ) {
102102 let exists = false ;
103- const items = classArray . filter ( css => ! ignoredClasses . some ( ignored => ignored === css ) ) ;
103+ const items = classArray . filter ( cls => ! ignoredClasses . has ( cls ) ) ;
104104
105105 for ( const classes of this . _classesList ) {
106106 if ( this . isArrayEqualToSet ( items , classes ) ) {
You can’t perform that action at this time.
0 commit comments