PipeTransform

Interface describing implementation of a pipe.


interface PipeTransform<T = any, R = any> {
  transform(value: T, metadata: ArgumentMetadata): R
}

See also

Methods

transform()

Method to implement a custom pipe. Called with two parameters


transform(value: T, metadata: ArgumentMetadata): R

Parameters

Option Type Description
value T

argument before it is received by route handler method

metadata ArgumentMetadata

contains metadata about the value

Returns

R