Skip to content

Single declaration exports (export =) not handled correctly #1456

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

Closed
hiranya911 opened this issue Jan 5, 2021 · 2 comments
Closed

Single declaration exports (export =) not handled correctly #1456

hiranya911 opened this issue Jan 5, 2021 · 2 comments

Comments

@hiranya911
Copy link

hiranya911 commented Jan 5, 2021

Search terms

Single export

Steps to reproduce the bug

Try generating documentation for a module that exports a single item using the export = syntax.

import { FirebaseNamespace } from './firebase-namespace';

const firebaseAdmin = new FirebaseNamespace();

export = firebaseAdmin;

The export was documented as a variable in the output.

Screen Shot 2021-01-05 at 3 04 44 PM

Environment

  • Typedoc version: 0.20.2
  • TypeScript version: 3.9.6
  • Node.js version: 10.22.0
  • OS: Mac
@hiranya911 hiranya911 added the bug label Jan 5, 2021
@Gerrit0
Copy link
Collaborator

Gerrit0 commented Jan 6, 2021

This looks like a duplicate of #1422

Short answer: handling this is tricky because people can do bad things:

export = 1

@Gerrit0
Copy link
Collaborator

Gerrit0 commented Jan 9, 2021

Closing in favor of #1422

@Gerrit0 Gerrit0 closed this as completed Jan 9, 2021
@Gerrit0 Gerrit0 removed the bug label Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants