Skip to content

Re-exported symbols inside a namespace are ignored #1366

@hiranya911

Description

@hiranya911

Search terms

namespace, re-export

Expected Behavior

List re-exported symbols as members of the namespace.

Actual Behavior

Re-exported symbols are ignored.

Steps to reproduce the bug

Run tsdoc against the following input:

// index.d.ts
interface Bar {
  prop: number;
}

declare namespace admin {
  export interface Foo {
    prop: string;
  }

  export { Bar }
}

export = admin;

Generated output only lists Foo for admin:

Screen Shot 2020-09-11 at 5 07 00 PM

Same happens when re-exporting symbols imported from another file:

import { auth } from './auth/index';

declare namespace admin {
  export { auth }
}

Environment

  • Typedoc version: v0.18.0
  • TypeScript version: v3.9.6
  • Node.js version: v10.22.0
  • OS: Mac

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions