我有两个文件,文件A和文件B。文件A使用文件B中的类。我的目标是在文件A的TypeDoc输出中引用文件B中使用的类的TypeDoc输出。这个。
我知道您可以使用带有双括号的TypeDoc来引用包含在同一文件中的符号,例如[[Foo]],但这不适用于像这样的外部类型。
/** Trying to reference [[FileB.InnerClass]] like this doesn't work. */
// This here is what I want to include
export type InnerClass = FileB.InnerClass;
// More code...
Run Code Online (Sandbox Code Playgroud)
这有可能实现吗?