-
-
Notifications
You must be signed in to change notification settings - Fork 736
Re-exporting interface in namespace via export import is considered a "variable" #1353
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
Comments
Adding to this, it also appears that enums aren't recognized correctly either, and they're labelled as variables. export const AppPlatform: typeof appMetadataApi.AppPlatform = appMetadataApi.AppPlatform; Here, export import AppPlatform = appMetadataApi.AppPlatform; This doesn't seem to work either. |
export import DemoInterface = demoInterfaceApi.DemoInterface; TIL this is legal... Every other time I've only seen export const AppPlatform: typeof appMetadataApi.AppPlatform = appMetadataApi.AppPlatform; This is a variable. TypeDoc's output is correct here. The The chanes in #1157 were focused on the more standard Right now, TypeDoc has |
That makes sense, thanks for following up. Okay, the focus of this issue should remain on the |
This is fixed in the 0.20 beta running typedoc on the following: export namespace NamespaceA {
export interface InterfaceA { }
//export type renamedInterfaceA = InterfaceA; // WA to typedoc v0.15
}
export namespace NamespaceB {
export interface InterfaceA { }
}
export namespace NamespaceC {
export import renamedInterfaceA = NamespaceA.InterfaceA;
export import InterfaceA = NamespaceB.InterfaceA;
export class TestClass {
testMethod1(options: renamedInterfaceA): any {}
testMethod2(options: InterfaceA): any {};
}
} and then viewing NamespaceC shows the following, with the InterfaceA links going to the appropriate page: |
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:
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
src
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
0.18.0
3.9.5
v12.18.1
10.13.3
The text was updated successfully, but these errors were encountered: