We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Minimal example:
type EndpointIdentifier = 'main' | 'test'; /** * @inlineType EndpointIdentifier */ export function test(endpoint: EndpointIdentifier) { // ... }
Problem found in this case usage:
/** @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) { // ... }
inline union type
Generate function docs with all union variants:
test(endpoint: "main" | "test")
Generate empty object type:
test(endpoint: {})
The text was updated successfully, but these errors were encountered:
Ah, yeah... @inline really wasn't intended for non-object-literals... I think it's reasonable to try to support this.
@inline
Sorry, something went wrong.
6376273
No branches or pull requests
Minimal example:
Problem found in this case usage:
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
The text was updated successfully, but these errors were encountered: