* Create a lazy router * And applies all of the previously defined options to the specified router. * * @see https://orpc.dev/docs/router#extending-router Extending Router Docs
(
loader: () => Promise<{ default: U }>,
)
| 327 | * @see {@link https://orpc.dev/docs/router#extending-router Extending Router Docs} |
| 328 | */ |
| 329 | lazy<U extends Router<ContractRouter<TMeta>, TCurrentContext>>( |
| 330 | loader: () => Promise<{ default: U }>, |
| 331 | ): EnhancedRouter<Lazy<U>, TInitialContext, TCurrentContext, TErrorMap> { |
| 332 | return enhanceRouter(lazy(loader), this['~orpc']) as any // Type instantiation is excessively deep and possibly infinite |
| 333 | } |
| 334 | } |
| 335 | |
| 336 | export const os = new Builder< |
nothing calls this directly
no test coverage detected