MCPcopy Create free account
hub / github.com/Snowflyt/tinyeffect / getUserPostsPipe

Function getUserPostsPipe

test/README.example.spec.ts:1558–1562  ·  view source on GitHub ↗
(userId: number)

Source from the content-addressed store, hash-verified

1556
1557 // Pipeline syntax
1558 const getUserPostsPipe = (userId: number) =>
1559 fetchUser(userId).andThen((user) => {
1560 if (!user) return null;
1561 return fetchPosts(user.id);
1562 });
1563
1564 // Test getUserPosts - user exists
1565 const userPostsGen = getUserPostsGen(1)

Callers 1

Calls 2

fetchUserFunction · 0.70
andThenMethod · 0.65

Tested by

no test coverage detected