MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / createInnerTRPCContext

Function createInnerTRPCContext

app/src/server/api/external/openApiTrpc.ts:36–42  ·  view source on GitHub ↗
(opts: CreateContextOptions)

Source from the content-addressed store, hash-verified

34 * @see https://create.t3.gg/en/usage/trpc#-serverapitrpcts
35 */
36export const createInnerTRPCContext = (opts: CreateContextOptions) => {
37 return {
38 key: opts.key,
39 headers: opts.headers,
40 res: opts.res,
41 };
42};
43
44export const createOpenApiContext = async (opts: CreateNextContextOptions) => {
45 const { req, res } = opts;

Callers 1

createOpenApiContextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected