Skip to content

Missing types for extracted method #1153

@vwkd

Description

@vwkd

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Needs Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions