mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
only show public methods
This commit is contained in:
parent
942106b88c
commit
c45504ccc2
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user