Skip to main content

Function: Trim()

Trim(): typeof TrimPipeStep

A decorator for applying the TrimPipeStep to a method parameter. It uses the Pipe decorator to define a pipe step that trims whitespace from the parameter value. This allows the decorated method parameter to enforce string formatting constraints, ensuring that it is a trimmed string value.

Returns​

typeof TrimPipeStep

A pipe decorator that applies the TrimPipeStep.