Taxum / @taxum/core / layer / Stack
Class: Stack<In, Mid, Out>
Defined in: layer/stack.ts:7
Two Layers chained together.
Type Parameters
In
In
extends AnyService
= UnknownService
Mid
Mid
extends AnyService
= UnknownService
Out
Out
extends AnyService
= UnknownService
Implements
Layer
<Out
,In
>
Constructors
Constructor
new Stack<
In
,Mid
,Out
>(inner
,outer
):Stack
<In
,Mid
,Out
>
Defined in: layer/stack.ts:19
Creates a new Stack.
Parameters
inner
Layer
<Mid
, In
>
outer
Layer
<Out
, Mid
>
Returns
Stack
<In
, Mid
, Out
>
Methods
layer()
layer(
service
):Out
Defined in: layer/stack.ts:24
Wrap the given service with the middleware, returning a new service that has been decorated with the middleware.
Parameters
service
In
Returns
Out