Skip to main content

Function: UpperCase()

UpperCase(): typeof UpperCasePipeStep

A decorator for applying the UpperCasePipeStep to a method parameter. It uses the Pipe decorator to define a pipe step that converts the parameter value to uppercase. This allows the decorated method parameter to enforce string case constraints, ensuring that it is an uppercase string value.

Returns​

typeof UpperCasePipeStep

A pipe decorator that applies the UpperCasePipeStep.