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

Method router

packages/server/src/builder.ts:317–321  ·  view source on GitHub ↗

* Applies all of the previously defined options to the specified router. * * @see https://orpc.dev/docs/router#extending-router Extending Router Docs

(
    router: U,
  )

Source from the content-addressed store, hash-verified

315 * @see {@link https://orpc.dev/docs/router#extending-router Extending Router Docs}
316 */
317 router<U extends Router<ContractRouter<TMeta>, TCurrentContext>>(
318 router: U,
319 ): EnhancedRouter<U, TInitialContext, TCurrentContext, TErrorMap> {
320 return enhanceRouter(router, this['~orpc']) as any // Type instantiation is excessively deep and possibly infinite
321 }
322
323 /**
324 * Create a lazy router

Callers

nothing calls this directly

Calls 1

enhanceRouterFunction · 0.90

Tested by

no test coverage detected