We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 111314a commit 2bac631Copy full SHA for 2bac631
1 file changed
src/lib/reference.ts
@@ -84,12 +84,11 @@ const getNamespacePaths = (routes: Route[]): string[] => {
84
return Array.from(
85
new Set(
86
routes
87
- .filter(({ isUndocumented }) => !isUndocumented)
88
- .flatMap((route) =>
89
- route.namespace != null && !route.namespace.isUndocumented
90
- ? [route.namespace.path]
91
- : [],
92
- ),
+ .filter(
+ (route) => route.namespace != null && !route.namespace.isUndocumented,
+ )
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
+ .map((route) => route.namespace!.path),
93
),
94
)
95
}
0 commit comments