Search
Preparing search index...
The search index is not available
@nestjs/common
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
DefaultValuePipe
Class DefaultValuePipe<T, R>
Defines the built-in DefaultValue Pipe
see
Built-in Pipes
publicapi
Type parameters
T =
any
R =
any
Hierarchy
DefaultValuePipe
Implements
PipeTransform
<
T
,
T
|
R
>
Index
Constructors
constructor
Properties
default
Value
Methods
transform
Constructors
constructor
new
Default
Value
Pipe
(
defaultValue
:
R
)
:
DefaultValuePipe
Parameters
defaultValue:
R
Returns
DefaultValuePipe
Properties
Private
Readonly
default
Value
default
Value
:
R
Methods
transform
transform
(
value
?:
T
, _metadata
?:
ArgumentMetadata
)
:
T
|
R
Parameters
Optional
value:
T
Optional
_metadata:
ArgumentMetadata
Returns
T
|
R
Globals
Default
Value
Pipe
constructor
default
Value
transform
Generated using
TypeDoc
Defines the built-in DefaultValue Pipe
Built-in Pipes