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

Method lazy

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

* Create a lazy router * And applies all of the previously defined options to the specified router. * And enforces the router match the contract. * * @see https://orpc.dev/docs/router#extending-router Extending Router Docs

(
    loader: () => Promise<{ default: U }>
  )

Source from the content-addressed store, hash-verified

80 * @see {@link https://orpc.dev/docs/router#extending-router Extending Router Docs}
81 */
82 lazy<U extends Router<T, TCurrentContext>>(
83 loader: () => Promise<{ default: U }>
84 ): EnhancedRouter<Lazy<U>, TInitialContext, TCurrentContext, Record<never, never>>
85}

Implementers 1

Builderpackages/server/src/builder.ts

Calls

no outgoing calls

Tested by

no test coverage detected