fix typechecking on exo8

This commit is contained in:
Vincent JOUANNE 2023-04-21 14:21:31 +02:00
parent 538308081b
commit 9df7ac21c0
1 changed files with 3 additions and 1 deletions

View File

@ -109,7 +109,9 @@ describe('exo8', () => {
const pipeline = await pipe(
rte.Do,
rte.apS('foo', rte.of<{ a: string }, string, number>(42)),
rteBindReaderKW('bar', ({ foo }) => reader.of<{ b: number }>(`${foo}`)),
rteBindReaderKW('bar', ({ foo }) =>
reader.of<{ b: number }, string>(`${foo}`),
),
)({ a: '', b: 0 })();
const expected = await rte.of({ foo: 42, bar: '42' })({})();