You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defined in
node_modules
react
functional component
FC
Expected Behavior
The Defined in field in generated docs should refer to the actual file where the documented function is defined, rather than the library code where its type is defined.
Actual Behavior
The doc entry for a react functional component declared in my-package/src/MyComponent.tsx as follows:
This happens because the signature declaration takes display priority, and the signature for that variable is defined in the types. TypeDoc should probably check here if the reflection is a signature and does not share a source declaration location with its parent, in which case it should replace its source declaration with that defined on the parent.
Search terms
defined in
node_modules
react
functional component
FC
Expected Behavior
The Defined in field in generated docs should refer to the actual file where the documented function is defined, rather than the library code where its type is defined.
Actual Behavior
The doc entry for a react functional component declared in
my-package/src/MyComponent.tsx
as follows:Contains this Defined in section:
It is the same for any component defined in any module this way.
Steps to reproduce the bug
The typedoc config in
tsconfig.json
:Run as
typedoc --plugin typedoc-plugin-markdown
Environment
The text was updated successfully, but these errors were encountered: