Skip to content

Commit

Permalink
reject private methods from docs
Browse files Browse the repository at this point in the history
  • Loading branch information
daedalus28 committed Apr 30, 2023
1 parent 3068c1f commit 2249668
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/generate-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ let getDocs = async () => {
let jsDocToJson = _.flow(
_.reject('undocumented'),
_.reject({ kind: 'module' }),
_.reject({ access: 'private' }),
_.filter('name'),
_.map(async (x) => {
let path = `${x.meta.path}/${x.meta.filename}`
Expand Down
3 changes: 3 additions & 0 deletions src/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,8 @@ export let updatePaths = _.curry((transforms, data) =>

/**
* Calls a function or defaults to isEqual, used internally by _matchesBy
*
* @private
* @typescript (fn: (x: any) => any | any, value: any)
*/
let callOrCompare = (fn, value) =>
Expand All @@ -544,6 +546,7 @@ let callOrCompare = (fn, value) =>
/**
* Internal function used by `matchesBy` and `matchesBySome`
*
* @private
* @typescript (combiner: (values: boolean[]) => boolean, criteria: object, object: object)
*/
let _matchesBy = _.curry((combiner, criteria, object) =>
Expand Down

0 comments on commit 2249668

Please sign in to comment.