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
The following code does not work. How do I fix this error?
import*asEventEmitterfrom'events';letMyMixin=Mixin((superclass)=>classextendssuperclass{foo(){console.log('foo from MyMixin');super.foo();}});classMyClassextendsmix(EventEmitter).with(MyMixin){foo(){console.log('foo from MyClass');super.foo();}}classMyClass2extendsMyClass{method1(){this.emit('event1');// error TS2339: Property 'emit' does not exist on type 'MyClass2'.}}
The text was updated successfully, but these errors were encountered:
Hello!
The following code does not work. How do I fix this error?
The text was updated successfully, but these errors were encountered: