From 6c998dc6c94d7ed38f7af456873d29e78ace815b Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Wed, 6 Nov 2019 12:52:34 +0100 Subject: [PATCH] filter out static methods by default --- src/templates/Typedoc/utils.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/templates/Typedoc/utils.js b/src/templates/Typedoc/utils.js index d8c34c99..8ef00320 100644 --- a/src/templates/Typedoc/utils.js +++ b/src/templates/Typedoc/utils.js @@ -29,18 +29,19 @@ export const cleanTypedocData = (data, useClasses) => { return cleanData } -// more kinds: 'Property', 'Class' +// more kinds: 'Property', 'Enumeration' const showKindOfProperty = { Method: { onlyPublic: true }, - Property: { onlyPublic: true }, - Class: { onlyPublic: true }, - Interface: { onlyPublic: false } + Property: { onlyPublic: true } } export const filterByKindOfProperty = ({ kindString, flags }) => { const config = showKindOfProperty[kindString] if (!config) return + // filter out static methods by default + if (flags.isStatic) return + if (config.onlyPublic && !flags.isPublic) return return true