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
exportinterfaceMyInterface{}exportinterfaceNested{// This will link to Nested.MyInterface in generated documentation// The behaviour is different from the Typescript Language Server, which links to interface MyInterface/** {@link MyInterface} */readonlyMyInterface: new()=>MyInterface;}
Notice that this will work correctly
exportinterfaceMyInterface{}exporttypeNested={// Both Typedoc and TS Language Server will point to interface MyInterface/** {@link MyInterface} */readonlyMyInterface: new()=>MyInterface;};
Environment
Typedoc version: TypeDoc 0.22.17
TypeScript version: Version 4.7.2
Node.js version: v16.15.0
OS: macOS Monterey Version 12.4
The text was updated successfully, but these errors were encountered:
ritave
changed the title
Links point to wrong scope when overloaded
Links point to wrong scope when linking from interface to external scope
Jun 5, 2022
Oh TypeScript, why did you have to add support for @link... This is working as documented today, though it would be nice to try to be consistent with TypeScript's behavior. If I remember right, the "correctly" working one is doing that because TypeDoc doesn't traverse into type literals for links (TypeScript sometimes does)
... Namespaces create a new scope, so do other nodes with a body, but nothing else, well... okay...
One advantage to TypeDoc's resolution strategy is that links that TS resolves to 1 don't change what they are pointing to if you comment out type abc = 1... though I guess the opposite could be said if Foo.abc went away...
Uh oh!
There was an error while loading. Please reload this page.
Search terms
link
Steps to reproduce the bug
Notice that this will work correctly
Environment
TypeDoc 0.22.17
Version 4.7.2
v16.15.0
macOS Monterey Version 12.4
The text was updated successfully, but these errors were encountered: