fix(esm): add types to exports (#6802)
fix(esm): add types to exports (#6802)

* fix(esm): add types to exports

* refactor(esm): move types to the top
martinsik/rxjs,ReactiveX/rxjs,martinsik/rxjs,ReactiveX/rxjs,ReactiveX/rxjs,ReactiveX/rxjs,martinsik/rxjs,martinsik/rxjs