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
From VScode: Cannot find module 'tiny-typed-emitter' or its corresponding type declarations.ts(2307)
After compilation: ButtonBehavior.ts - TS2315: Type 'EventEmitter' is not generic. ButtonBehavior.ts - TS2339: Property 'emit' does not exist on type 'ButtonBehavior'.
The text was updated successfully, but these errors were encountered:
This package simply provides alternative type definitions for NodeJS's built in EventEmitter. So it won't work in browser if that's where you are using it.
ButtonBehavior.ts:
ButtonBehaviorEvent.ts:
package.json:
I get the errors:
From VScode:
Cannot find module 'tiny-typed-emitter' or its corresponding type declarations.ts(2307)
After compilation:
ButtonBehavior.ts - TS2315: Type 'EventEmitter' is not generic.
ButtonBehavior.ts - TS2339: Property 'emit' does not exist on type 'ButtonBehavior'.
The text was updated successfully, but these errors were encountered: