better-docs
better-docs copied to clipboard
namespace with interfaces not detected
package version: "better-docs": "^2.7.3"
/**
* @namespace Foo
* @description The ListandoCloud namespace
* @memberof global
*/
declare namespace Foo {
/**
* @interface Bar
* @description The Bar interface
* @property {string} name - The name of the Bar
* @memberof Foo
*/
export interface Bar {
name: string;
}
}
Namespace and interface are not generated when they are like so. Only interface is generated if its defined outside the namespace.
jsdoc.json:
{
"out": "./docs",
"source": {
"include": ["./src/index.ts"],
"includePattern": "\\.(jsx|js|ts|tsx)$",
},
"plugins": ["./node_modules/better-docs/typescript"],
"tags": {
"allowUnknownTags": true
},
"opts": {
"destination": "./docs",
"recurse": true,
"template": "./node_modules/better-docs"
}
}
Any idea on how to fix this? If u need more info please let me know!
`