jsr icon indicating copy to clipboard operation
jsr copied to clipboard

Missing types for extracted method

Open vwkd opened this issue 5 months ago • 0 comments

JSR doesn't show the types for an extracted method from a class. This happens both for normal and static methods.

For example, JSR doesn't show types for the extracted static method baz.

/**
 * Foo class
 */
export class Foo {
  /**
   * Bar static method
   *
   * @param q The question
   * @returns The answer
   */
  static bar(q: string): number {
    return 42;
  }
}

export const baz = Foo.bar;

For comparison, VSCode does show the types.

Image

vwkd avatar Jul 03 '25 17:07 vwkd