MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / makeService

Function makeService

apps/cloud/src/auth/context.ts:12–19  ·  view source on GitHub ↗
(store: RawStore)

Source from the content-addressed store, hash-verified

10type RawStore = ReturnType<typeof makeUserStore>;
11
12const makeService = (store: RawStore) => ({
13 use: <A>(fn: (s: RawStore) => Promise<A>) =>
14 withServiceLogging(
15 "user_store",
16 () => new UserStoreError(),
17 tryPromiseService(() => fn(store)),
18 ),
19});
20
21type UserStoreServiceType = ReturnType<typeof makeService>;
22

Callers 2

UserStoreServiceClass · 0.85
makeUserStoreLayerFunction · 0.85

Calls 2

withServiceLoggingFunction · 0.90
tryPromiseServiceFunction · 0.90

Tested by

no test coverage detected