diff --git a/packages/rpc/src/Router.ts b/packages/rpc/src/Router.ts index d830206..03f1a19 100644 --- a/packages/rpc/src/Router.ts +++ b/packages/rpc/src/Router.ts @@ -300,17 +300,17 @@ export const make: < * @since 1.0.0 */ export const provideLayer: { - >(layer: T): < + >(layer: T): < Router extends RpcRouter.Base >( self: Router - ) => RpcRouter.Provide, never, never> - >( + ) => RpcRouter.Provide, never, never> + >( self: Router, layer: T - ): RpcRouter.Provide, never, never> + ): RpcRouter.Provide, never, never> } = - internal.provideLayer + internal.provideLayer as any /** * @category router combinators diff --git a/packages/rpc/src/internal/router.ts b/packages/rpc/src/internal/router.ts index d37b2b2..8d9a83b 100644 --- a/packages/rpc/src/internal/router.ts +++ b/packages/rpc/src/internal/router.ts @@ -56,13 +56,13 @@ export const provideLayer: { ): (self: Router) => RpcRouter.Provide, R, E> < Router extends RpcRouter.Base, + T extends Layer.Layer, R, E extends RpcService.Errors, - A >( self: Router, - layer: Layer.Layer - ): RpcRouter.Provide, R, E> + layer: T + ): RpcRouter.Provide, R, E> } = dual( 2, , R, E>(