Vertispan / jsinterop-ts-defs

Ingests jsinterop-annotated Java and generates TypeScript definitions
Apache License 2.0
7 stars 3 forks source link

`@link`s to Java methods annotated with `@JsProperty` do not resolve correctly in Typescript #87

Closed niloc132 closed 11 months ago

niloc132 commented 11 months ago

Example Java:

/** The entire point of this class is to let you use {@link #getSomethingImportant()}. */
public class MyClass {
  @JsProperty
  public String getSomethingImportant() {
    return null;
  }
}

Expected: resulting link would reference the somethingImportant property.

Actual generated TS:

    /**
    * The entire point of this class is to let you use {@link getSomethingImportant} .
    */
    export class MyClass {
        protected constructor();

        get somethingImportant():string;
    }

Also, there is an extra space after the link - not sure if that can be easily corrected, given that it is sometimes needed to insert spaces between tags/words.