Search Terms
inline type alias, replace type, namespace re-export
Problem
When organizing a library's public API using namespaces to re-export types from internal modules (often with renaming), Typedoc treats these as distinct type aliases. This triggers the referenced by ... but not included in the documentation warning for the original source types, cluttering the logs.
Currently, there is no clean way to tell Typedoc: "Treat this alias in the namespace exactly as if it were the original type definition."
Example Scenario:
-
Source (util.ts):
export interface Vec { x: number; y: number; }
export class Vector { /* ... */ }
-
Public API (index.ts):
import { Vec as _Vec, Vector as _Vector } from './util.ts';
export namespace Math {
// I want Math.Vec to be treated exactly as the Vec interface
export type Vec = _Vec;
// I want Math.Vector to be treated exactly as the Vector class
export type Vector = _Vector;
export const Vector = _Vector;
}
Current Behavior:
Typedoc generates Math.Vec as a type alias pointing to Vec and emits a warning:
[warning] Vec, defined in util.ts, is referenced by Math.Vec but not included in the documentation.
Attempted Workarounds:
- Tags: I have tried using
@expand, @expandType, @inline, and @inlineType. None of these effectively replace the alias with the target definition in the generated documentation structure.
- Syntax:
export import Vec = _Vec; is invalid for types and values in this context (only supports namespaces).
Suggested Solution
I would like to request a feature (either a specific JSDoc tag or a configuration option) that allows replacing the alias/constant with the target definition.
Search Terms
inline type alias, replace type, namespace re-export
Problem
When organizing a library's public API using namespaces to re-export types from internal modules (often with renaming), Typedoc treats these as distinct type aliases. This triggers the
referenced by ... but not included in the documentationwarning for the original source types, cluttering the logs.Currently, there is no clean way to tell Typedoc: "Treat this alias in the namespace exactly as if it were the original type definition."
Example Scenario:
Source (
util.ts):Public API (
index.ts):Current Behavior:
Typedoc generates
Math.Vecas a type alias pointing toVecand emits a warning:Attempted Workarounds:
@expand,@expandType,@inline, and@inlineType. None of these effectively replace the alias with the target definition in the generated documentation structure.export import Vec = _Vec;is invalid for types and values in this context (only supports namespaces).Suggested Solution
I would like to request a feature (either a specific JSDoc tag or a configuration option) that allows replacing the alias/constant with the target definition.