(userId: number)
| 1548 | { |
| 1549 | // Generator syntax |
| 1550 | const getUserPostsGen = (userId: number) => |
| 1551 | effected(function* () { |
| 1552 | const user = yield* fetchUser(userId); |
| 1553 | if (!user) return null; |
| 1554 | return yield* fetchPosts(user.id); |
| 1555 | }); |
| 1556 | |
| 1557 | // Pipeline syntax |
| 1558 | const getUserPostsPipe = (userId: number) => |
no test coverage detected