Skip to content

Losing type inferences in marble tests #1633

@kwonoj

Description

@kwonoj

RxJS version:
master

Additional information:

Currently to enhance jsdoc test code readability, test scheduler interface is not being directly imported but accessed globally with implicit ambient declaration, so hot or cold observable generated does not support any type inference to Observable<T>

declare const {hot, cold, asDiagram, expectObservable, expectSubscriptions};

var e1 = hot(...);

e1.audit().subscribe() //e1 does not gives any type context

This is somewhat problem since all unit test cases are intended to be used as type definition test cases too, which current test cases are losing its benefit in lot of cases.

Metadata

Metadata

Assignees

Labels

TSIssues and PRs related purely to TypeScript issueshelp wantedIssues we wouldn't mind assistance with.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions