Skip to content

Commit

Permalink
fix: Empty legend on most pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Mar 22, 2020
1 parent 66eba4a commit 2983acf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/output/plugins/LegendPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ export interface LegendItem {
classes: string[];
}

const ignoredClasses = [
'tsd-parent-kind-external-module',
const ignoredClasses = new Set([
'tsd-parent-kind-module',
'tsd-is-not-exported',
'tsd-is-overwrite'
];
]);

const completeLegend: LegendItem[][] = [
[
Expand Down Expand Up @@ -100,7 +100,7 @@ export class LegendBuilder {

registerCssClasses(classArray: string[]) {
let exists = false;
const items = classArray.filter(css => !ignoredClasses.some(ignored => ignored === css));
const items = classArray.filter(cls => !ignoredClasses.has(cls));

for (const classes of this._classesList) {
if (this.isArrayEqualToSet(items, classes)) {
Expand Down

0 comments on commit 2983acf

Please sign in to comment.