-
Notifications
You must be signed in to change notification settings - Fork 709
New issue
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
When a function parameter has type NoInfer<T>
, T
is removed from the generated doc
#2539
Labels
bug
Functionality does not match expectation
Comments
Huh, that's strange... I must not have been paying enough attention. |
xuhdev
added a commit
to 8hobbies/utils
that referenced
this issue
Apr 8, 2024
So that the relevant typedoc bug on `NoInfer` is fixed: TypeStrong/typedoc#2539
This was referenced Jul 27, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: