typedoc icon indicating copy to clipboard operation
typedoc copied to clipboard

Typescript 1.4 Type Alias hyperlinks

Open mudHOAX opened this issue 11 years ago • 2 comments

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.

mudHOAX avatar Feb 05 '15 11:02 mudHOAX

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.

sebastian-lenz avatar Feb 07 '15 15:02 sebastian-lenz

Works now. Thanks!

mudHOAX avatar Feb 09 '15 09:02 mudHOAX