When a function parameter has type NoInfer<T>
, T
is removed from the generated doc
#2539
Labels
bug
Functionality does not match expectation
Search terms
NoInfer, TypeScript 5.4
Expected Behavior
When
NoInfer<T>
is used in a function parameter,T
is retained in the document output of this function parameter. This is becauseT
is still informational, indicating that the function parameter has typeT
-- it's just thatT
can't be inferred from this function parameter.Actual Behavior
T
is removed from this function parameter in the doc.Steps to reproduce the bug
(The corresponding test does not check for
C
:typedoc/src/test/behavior.c2.test.ts
Line 1180 in 3398e98
npm install --save-dev typedoc
npx typedoc NoInfer.ts
C
is gone from thedefaultColor
parameter descriptionEnvironment
The text was updated successfully, but these errors were encountered: