Browse Source

Hide private functions in the documentation (#121)

string-allowed-chars
Sam Verschueren 6 years ago
committed by Sindre Sorhus
parent
commit
07f86df77e
  1. 1
      source/lib/utils/infer-label.ts
  2. 3
      source/test/fixtures/create-error.ts

1
source/lib/utils/infer-label.ts

@ -9,6 +9,7 @@ const labelRegex = /^.*?\((.*?)[,)]/;
/**
* Infer the label of the caller.
*
* @hidden
* @param callsites - List of stack frames.
*/
export const inferLabel = (callsites: CallSite[]) => {

3
source/test/fixtures/create-error.ts

@ -1,3 +1,6 @@
/**
* @hidden
*/
export const createAnyError = (...errors: string[]) => {
return [
'Any predicate failed with the following errors:',

Loading…
Cancel
Save