MCPcopy Create free account
hub / github.com/effect-app/libs / getMeta

Function getMeta

packages/effect-app/src/client/apiClientFactory.ts:115–121  ·  view source on GitHub ↗
(
  resource: M
)

Source from the content-addressed store, hash-verified

113}
114
115export const getMeta = <M extends RequestsAny>(
116 resource: M
117): { moduleName: ExtractModuleName<M>; middleware?: unknown } => {
118 const first = typedValuesOf(getFiltered(resource))[0]
119 if (first && "moduleName" in first) return { moduleName: first.moduleName, middleware: (first as any).middleware }
120 throw new Error("No moduleName on requests!")
121}
122
123export const makeRpcGroupFromRequestsAndModuleName = <M extends RequestsAny, const ModuleName extends string>(
124 resource: M,

Callers 3

matchForFunction · 0.90
makeRpcTagFunction · 0.85

Calls 2

typedValuesOfFunction · 0.90
getFilteredFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…