jsr
jsr copied to clipboard
Missing types for extracted method
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.