Minimal example: ```typescript type EndpointIdentifier = 'main' | 'test'; /** * @inlineType EndpointIdentifier */ export function test(endpoint: EndpointIdentifier) { // ... } ``` Problem found in this case usage: ```typescript /** @enum */ const Endpoint = Object.freeze({ Main: 'main', Test: 'test', }); type EndpointIdentifier = typeof Endpoint[keyof typeof Endpoint]; /** * @inlineType EndpointIdentifier */ export function test(endpoint: EndpointIdentifier = Endpoint.Main) { // ... } ``` ## Search terms inline union type ## Expected Behavior Generate function docs with all union variants: `test(endpoint: "main" | "test")` ## Actual Behavior Generate empty object type: `test(endpoint: {})` ## Environment - Typedoc version: 0.28.1 - TypeScript version: 5.8.2 - Node.js version: 22.11.0 - OS: Win10
Activity
Gerrit0 commentedon Apr 1, 2025
Ah, yeah...
@inlinereally wasn't intended for non-object-literals... I think it's reasonable to try to support this.Handle `@inline` on more types