diff --git a/src/templates/Typedoc/utils.js b/src/templates/Typedoc/utils.js index 582e4824..3b2be881 100644 --- a/src/templates/Typedoc/utils.js +++ b/src/templates/Typedoc/utils.js @@ -20,16 +20,15 @@ export const cleanTypedocData = (data, useClasses) => { // more kinds: 'Property', 'Class' const showKindOfProperty = { - Method: true, + Method: { onlyPublic: true }, Property: { onlyPublic: true } } + export const filterByKindOfProperty = ({ kindString, flags }) => { const config = showKindOfProperty[kindString] - if (!config) { - return - } - if (config.onlyPublic && !flags.isPublic) { - return - } + if (!config) return + + if (config.onlyPublic && !flags.isPublic) return + return true }