* Applies all of the previously defined options to the specified router. * * @see https://orpc.dev/docs/router#extending-router Extending Router Docs
(
router: U,
)
| 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 |
nothing calls this directly
no test coverage detected