From e4fbb1c63c242631da966b1bfbfbe16f6b997c5b Mon Sep 17 00:00:00 2001 From: Gerrit Birkeland Date: Fri, 8 Jul 2022 20:33:41 -0600 Subject: [PATCH] Fix private filter Resolves #1992 --- CHANGELOG.md | 4 ++++ src/lib/output/themes/default/DefaultTheme.tsx | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b1504af9d..8106f3242 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Unreleased +### Bug Fixes + +- The private member visibility option will now be respected in generated sites, #1992. + ## v0.23.6 (2022-07-08) ### Features diff --git a/src/lib/output/themes/default/DefaultTheme.tsx b/src/lib/output/themes/default/DefaultTheme.tsx index de59eba96..6e51ef24a 100644 --- a/src/lib/output/themes/default/DefaultTheme.tsx +++ b/src/lib/output/themes/default/DefaultTheme.tsx @@ -276,6 +276,10 @@ export class DefaultTheme extends Theme { if (reflection.flags.isProtected) { classes.push("tsd-is-protected"); } + } else if (key === "private") { + if (reflection.flags.isPrivate) { + classes.push("tsd-is-private"); + } } else if (key === "external") { if (reflection.flags.isExternal) { classes.push("tsd-is-external");