DefaultValuePipe
Defines the built-in DefaultValue Pipe
class DefaultValuePipe<T = any, R = any> implements PipeTransform {
protected defaultValue: R
transform(value?: T, _metadata?: ArgumentMetadata): T | R
}
See also
Properties
Property | Description |
---|---|
protected defaultValue: R
|
Read-only. |
Methods
transform() | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters
Returns
|