Closed
Description
- I have checked issues with bug label and found no duplicates
Expected Behavior
Generated docs should include only exported functions
Actual Behavior
Generated docs include exported functions plus const
's from require
's
Steps to reproduce the bug
input file
'use strict'
const fs = require('fs')
const os = require('os')
const path = require('path')
const nanoid = require('nanoid')
/**
* Temporary folder
*
* @param {(d: string) => string} transform - Transform function to add prefixes or sufixes to the unique id
* @returns {string} - Full real path to a temporary folder
*/
const tempdir = (transform = d => d) => {
const osTmpDir = fs.realpathSync(os.tmpdir())
return path.join(osTmpDir, transform(nanoid()))
}
module.exports = {
tempdir
}
config
{
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"target": "es2018",
"moduleResolution": "node",
"resolveJsonModule": true,
"stripInternal": true,
"strict": false,
"alwaysStrict": true,
"strictNullChecks": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"noEmitOnError": true,
"emitDeclarationOnly": true,
"declaration": true,
"outDir": "types",
"removeComments": true,
"skipLibCheck": true,
"lib": [
"WebWorker.ImportScripts",
"DOM"
]
},
"files": [
"src/temp-dir.js"
],
"exclude": [
"__tests__",
"node_modules",
"types"
],
"typedocOptions": {
"mode": "file",
"out": "docs",
"includeDeclarations": true,
"excludeExternals": true,
"excludeNotExported": true,
"theme": "minimal",
"exclude": [
"**/node_modules/**"
],
"externalPattern":[
"**/node_modules/**"
]
}
}
How can i remove those const in the previous pic ? They are not exported and they are external and still they should up in the docs.
Thank you for your help.
Environment
- Typedoc version: 0.17.3
- Node.js version: 12
- OS: mac os