Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
fix layer import
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-dixon committed Jun 25, 2023
1 parent 80fd959 commit f89ccde
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions packages/rpc/src/Router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,17 +300,17 @@ export const make: <
* @since 1.0.0
*/
export const provideLayer: {
<T extends Layer.Layer<any, any, any>>(layer: T): <
<T extends Layer<any, any, any>>(layer: T): <
Router extends RpcRouter.Base
>(
self: Router
) => RpcRouter.Provide<Router, Layer.Layer.Success<T>, never, never>
<Router extends RpcRouter.Base, T extends Layer.Layer<any, any, any>>(
) => RpcRouter.Provide<Router, Layer.Success<T>, never, never>
<Router extends RpcRouter.Base, T extends Layer<any, any, any>>(
self: Router,
layer: T
): RpcRouter.Provide<Router, Layer.Layer.Success<T>, never, never>
): RpcRouter.Provide<Router, Layer.Success<T>, never, never>
} =
internal.provideLayer
internal.provideLayer as any

/**
* @category router combinators
Expand Down
6 changes: 3 additions & 3 deletions packages/rpc/src/internal/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ export const provideLayer: {
): (self: Router) => RpcRouter.Provide<Router, Layer.Layer.Success<T>, R, E>
<
Router extends RpcRouter.Base,
T extends Layer.Layer<any, any, any>,
R,
E extends RpcService.Errors<Router['schema']>,
A
>(
self: Router,
layer: Layer.Layer<R, E, A>
): RpcRouter.Provide<Router, Layer.Layer.Success<any>, R, E>
layer: T
): RpcRouter.Provide<Router, Layer.Layer.Success<T>, R, E>
} = dual(
2,
<Router extends RpcRouter.Base, T extends Layer.Layer<any, any, any>, R, E>(
Expand Down

0 comments on commit f89ccde

Please sign in to comment.