Open
Description
π Search Terms
mixins overrides, documentation dropped
π Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about documentation, mixins, etc.
β― Playground Link
π» Code
declare class BaseClass {
/** some documentation */
static method(): number;
}
type AnyConstructor = abstract new (...args: any[]) => object
function Mix<T extends AnyConstructor>(BaseClass: T) {
abstract class MixinClass extends BaseClass {
constructor(...args: any[]) {
super(...args);
}
}
return MixinClass;
}
// Or more simply you can write:
class MixinClass {}
declare function Mix<T extends AnyConstructor>(BaseClass: T): typeof MixinClass & T;
declare class Mixed extends Mix(BaseClass) {
static method(): number;
}
Mixed.method;
// ^ No documentation.
π Actual behavior
Overrides of a mixin class does not have documentation.
Notably if you don't override the method the documentation does show up. This shows it's possible to get it.
π Expected behavior
It should inherit documentation.
Additional information about the issue
No response