typedoc
typedoc copied to clipboard
Typescript 1.4 Type Alias hyperlinks
It would be nice if the use of type aliases were linked to the definition of said alias.
e.g:
export type Callback = <T>(val: T, index: number, arr: Array<T>): any;
public someFunction<T>(arr: Array<T>, callback: Callback): any {
...
}
The resulting documentation will specify the callback as type 'Callback', but not create a hyperlink to quickly view the type declaration.
Hi Mudhoax, thank you for reporting this. Just looked into this, seems like we've tried to resolve the type alias to early. I guess someFunction is defined inside a class. Classes are reflected prior to type aliases which should have caused this error.
Works now. Thanks!