Incorrect placement of default values when function not using the this
parameter satisfies
an interface that DOES use the this
parameter
#2698
Labels
bug
Functionality does not match expectation
Search terms
this, default value, satisfies
Expected Behavior
Given:
this
parameter to set the type ofthis
for the function (read about this TypeScript feature here: https://www.typescriptlang.org/docs/handbook/2/functions.html#declaring-this-in-a-function)satisfies
the interface but does not explicitly includethis
in its parameter listExample code for the above:
The rendered documentation for the function should display the default values with the correct parameters like this (note that this image was produced by modifying my code to mimic the desired output):
Actual Behavior
The rendered documentation offsets the default values, starting by assigning the first default value to
this
:Steps to reproduce the bug
Use the provided example code and generate the output. The typedoc.json configuration makes zero difference.
Environment
The text was updated successfully, but these errors were encountered: