import { Observable } from 'rxjs'; type ObservableType = T extends Observable ? V : never; declare global { namespace jest { interface Matchers { toEmitValues>(expected: E[]): Promise; /** * Collect all the values emitted by the observables (also errors) and pass them to the expectations functions after * the observable ended (or emitted error). If Observable does not complete within OBSERVABLE_TEST_TIMEOUT_IN_MS the * test fails. */ toEmitValuesWith>(expectations: (received: E[]) => void): Promise; } } }