Provide a function signature for the prototype assignments
Open
- Dominant language
- TypeScript
- Stars
- 3
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
Using Function as PubSub's function type allows consumers of it to call it without any type safety of the functions signature.
This should also support RxJS's EventTargetLike type with the on/off signature, or [add|remove]EventListener
https://github.com/ReactiveX/rxjs/blob/master/src/observable/FromEventObservable.ts#L38
Contributor guide
Assessment
This issue has not been assessed yet.