You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// jsdoc marked as mixin
interface A {
a(): void;
}
// jsdoc marked as interface
interface B {
b(): void;
}
class C implements A, B {
}
current output
// jsdoc marked as mixin
interface A {
a(): void;
}
// jsdoc marked as interface
interface B {
b(): void;
}
class C implements A, B {
static a(): void;
b(): void;
}
The reason of static occurrence is because in jsdoc mixins do not apply scope: instance.
I can not figure out why should we copy those members to class. IMO, it's unnecessary.
The text was updated successfully, but these errors were encountered:
Because the first thing you listed is invalid Typescript.
Class 'C' incorrectly implements interface 'A'.
Property 'a' is missing in type 'C'.
Class 'C' incorrectly implements interface 'B'.
Property 'b' is missing in type 'C'.
A class that implements an interface must define the items it implements.
see
tsd-jsdoc/src/Emitter.ts
Line 335 in 07c6298
a reasonable version
current output
The reason of static occurrence is because in jsdoc mixins do not apply
scope: instance
.I can not figure out why should we copy those members to class. IMO, it's unnecessary.
The text was updated successfully, but these errors were encountered: