Taxum / @taxum/core / layer / LayerFn
Class: LayerFn<Out, In>
Defined in: layer/layer-fn.ts:52
A Layer implemented by a closure.
See
Type Parameters
Out
Out
extends AnyService
= UnknownService
In
In
extends AnyService
= UnknownService
Implements
Layer
<Out
,In
>
Constructors
Constructor
new LayerFn<
Out
,In
>(f
):LayerFn
<Out
,In
>
Defined in: layer/layer-fn.ts:59
Parameters
f
LayerFnClosure
<Out
, In
>
Returns
LayerFn
<Out
, In
>
Methods
layer()
layer(
inner
):Out
Defined in: layer/layer-fn.ts:63
Wrap the given service with the middleware, returning a new service that has been decorated with the middleware.
Parameters
inner
In
Returns
Out