Skip to content

namespace with interfaces not detected #265

@hajjarjoseph

Description

@hajjarjoseph

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!

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions