MCPcopy Create free account
hub / github.com/middleapi/orpc / use

Method use

packages/server/src/implementer.ts:50–50  ·  view source on GitHub ↗

* Uses a middleware to modify the context or improve the pipeline. * * @info Supports both normal middleware and inline middleware implementations. * @note The current context must be satisfy middleware dependent-context * @see https://orpc.dev/docs/middleware Middleware Docs

(
    middleware: Middleware<
      UInContext | TCurrentContext,
      UOutContext,
      unknown,
      unknown,
      ORPCErrorConstructorMap<InferContractRouterErrorMap<T>>,
      InferContractRouterMeta<T>
    >,
  )

Source from the content-addressed store, hash-verified

48 * @see {@link https://orpc.dev/docs/middleware Middleware Docs}
49 */
50 use<UOutContext extends IntersectPick<TCurrentContext, UOutContext>, UInContext extends Context = TCurrentContext>(
51 middleware: Middleware<
52 UInContext | TCurrentContext,
53 UOutContext,

Implementers 1

Builderpackages/server/src/builder.ts

Calls

no outgoing calls

Tested by

no test coverage detected