Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exported elements missing #1499

Closed
RunDevelopment opened this issue Feb 6, 2021 · 3 comments
Closed

Exported elements missing #1499

RunDevelopment opened this issue Feb 6, 2021 · 3 comments
Labels
bug Functionality does not match expectation

Comments

@RunDevelopment
Copy link
Contributor

Search terms

namespace, missing export

Expected Behavior

I have a project that exports a function like this:

export namespace nested {
  function bar(): number {
    return 4;
  }
}

I split this up into 3 files like this:

src/
  nested/
    bar.ts
    index.ts
  index.ts
// src/index.ts
export * as nested from "./nested/index";

// src/nested/index.ts
export * from "./bar";

// src/nested/bar.ts
export function bar(): number {
	return 4;
}

I expected that typedoc correctly detects the nested namespace and the bar function within it.

Actual Behavior

Typedoc does not detect the bar function and thinks that nested is an empty namespace.

docs/modules.html

image

docs/modules/nested.html

image

Steps to reproduce the bug

Minimal project.

Environment

  • Typedoc version: 0.20.22
  • TypeScript version: 4.1.3
  • Node.js version: v14.15.4
  • OS: Win10 x64 Version 10.0.19042.746
@RunDevelopment RunDevelopment added the bug Functionality does not match expectation label Feb 6, 2021
@Gerrit0
Copy link
Collaborator

Gerrit0 commented Feb 6, 2021

The namespace converter is the single most changed piece of code the past 3 weeks here... I keep half fixing it, and someone reports another bug 😅

@Gerrit0 Gerrit0 closed this as completed in 7dfadcf Feb 6, 2021
@RunDevelopment
Copy link
Contributor Author

Thank you for resolving this so quickly @Gerrit0!

@Gerrit0
Copy link
Collaborator

Gerrit0 commented Feb 6, 2021

Glad to help :) You caught me on a day I had time and was working on TypeDoc anyways

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Functionality does not match expectation
Projects
None yet
Development

No branches or pull requests

2 participants