Skip to content

reexport variable would be treat as external variable #686

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
XGHeaven opened this issue Jan 24, 2018 · 1 comment
Closed

reexport variable would be treat as external variable #686

XGHeaven opened this issue Jan 24, 2018 · 1 comment

Comments

@XGHeaven
Copy link

XGHeaven commented Jan 24, 2018

File Folder

  • cwd
    • index.ts
    • types.ts
// types.ts
export class A {}
export enum B {}
export interface C {}
export function D {}
// index.ts
import {A, B, C, D} from './types'
D() // do some action
export {A, B, C}

Run generate docs command

typedoc --out docs --mode file index.ts

I expect class A & enum B & interface C are internal variable and shown in doc.
And function D don't shown in docs.

But the fact is class A enum B interface C function D are shown in doc as external variable.

@aciccarello aciccarello self-assigned this Jan 24, 2018
@aciccarello
Copy link
Collaborator

Yeah, currently TypeDoc doesn't really care about what is exported and what isn't. I agree there should be work done on this but will close this as a duplicate of #639

@aciccarello aciccarello removed their assignment Feb 1, 2018
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