Skip to content

Re-exporting interface in namespace via export import is considered a "variable" #1353

Closed
@MathBunny

Description

@MathBunny

Re-exporting interface in namespace via export import is considered a "variable"

Search terms

namespace, aliasing, import, export, re-exporting, interface

Expected Behavior

TypeDoc will produce a web-page consisting of two interfaces listed for the following code:

/**
 * Sample namespace exported that leverages aliasing. 
 */
export namespace admin.subnamespace{
  export import DemoInterface = demoInterfaceApi.DemoInterface; // DOES NOT WORK!
  export interface DemoClass extends demoClassApi.DemoClass {}
}

Actual Behavior

The following appears with variables as one of the sections:

Steps to reproduce the bug

Visit my repository: github.com/MathBunny/typedoc-namespace-bug-demo

  • All the source code is found in src
  • You can test and build via npm run build && npm run docs

This seems related to #1157 but I'm not sure if export import is fully supported yet or what the plans are for it; the issues aren't very clear on what is and what is not supported yet.

Environment

  • Typedoc version: 0.18.0
  • TypeScript version: 3.9.5
  • Node.js version: v12.18.1
  • OS: macOS High Sierra 10.13.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedContributions are especially encouraged

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions