Skip to content

How to inline type generics? #2888

Answered by Gerrit0
LekoArts asked this question in Q&A
Mar 5, 2025 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

Ah, you're running an old version of TypeDoc from before @inline was supported In 0.27, this renders as:

In 0.28, as your useExample variable explicitly specifies a type, and TypeDoc is more conservative about rewriting the types of your members, you have to specify @function for it to render as a function. When doing that, it renders as:

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@LekoArts
Comment options

@Gerrit0
Comment options

Answer selected by LekoArts
@LekoArts
Comment options

Comment options

You must be logged in to vote
2 replies
@LekoArts
Comment options

@suhaotian
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants