andywer / typed-emitter

🔩 Type-safe event emitter interface for TypeScript
MIT License
268 stars 24 forks source link

[RxJS] `FromEvent` type missmatch since 7.5.6 #34

Open Amphaal opened 1 year ago

Amphaal commented 1 year ago

If using RxJS >=7.5.6, we could not parse rxjs's fromEvent to a typed-emitter/rxjs fromEvent :

import { fromEvent as rxFromEvent } from 'rxjs'
const fromEvent = rxFromEvent as FromEvent

..my VSCode says at line 2 that both types are not compatible.