better-docs icon indicating copy to clipboard operation
better-docs copied to clipboard

namespace with interfaces not detected

Open hajjarjoseph opened this issue 9 months ago • 0 comments

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!

`

hajjarjoseph avatar Jan 09 '25 22:01 hajjarjoseph