Skip to content

Taxum / @taxum/core / layer / LayerTuple

Class: LayerTuple<Layers, Out, In>

Defined in: layer/tuple.ts:22

A combination of multiple layers.

See

layerTuple

Type Parameters

Layers

Layers extends readonly [AnyLayer, ...AnyLayer[]]

Out

Out extends InferOut<FirstLayer<Layers>> = InferOut<FirstLayer<Layers>>

In

In extends InferIn<LastLayer<Layers>> = InferIn<LastLayer<Layers>>

Implements

Constructors

Constructor

new LayerTuple<Layers, Out, In>(layers): LayerTuple<Layers, Out, In>

Defined in: layer/tuple.ts:30

Parameters

layers

LayerChain<Layers>

Returns

LayerTuple<Layers, Out, In>

Methods

layer()

layer(inner): Out

Defined in: layer/tuple.ts:34

Wrap the given service with the middleware, returning a new service that has been decorated with the middleware.

Parameters

inner

In

Returns

Out

Implementation of

Layer.layer