typecheck passes

This commit is contained in:
Kiara Grouwstra 2021-10-04 18:49:52 +02:00
parent 309dc69e78
commit 0f568299a4
2 changed files with 7 additions and 4 deletions

View File

@ -13,7 +13,10 @@ export const mollieKeys = {
export function unrollResult(result: List<Payment>): Observable<Payment> {
// log(result);
// const { count, nextPage, links } = result;
return concat(of(result), of(result.nextPage ? listAll(result.nextPage()) : []));
return concat(
of(...result),
of(... result.nextPage ? listAll(result.nextPage()) : []),
);
}
export function listAll(page$: Promise<List<Payment>>): Observable<Payment> {

View File

@ -11,7 +11,7 @@ test('airtable can print records', (done: () => void) => {
const obs = listAll(entity.list());
log('just before subscribe');
// log('just before subscribe');
obs.subscribe({
next(x: any) {
log('got value ' + x);
@ -24,8 +24,8 @@ test('airtable can print records', (done: () => void) => {
done();
}
});
log('just after subscribe');
// log('just after subscribe');
// entity
// .list()
// .then(result => {