You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

13 lines
472 B

import { ArgumentMetadata, PipeTransform } from '../interfaces/features/pipe-transform.interface';
/**
* Defines the built-in DefaultValue Pipe
*
* @see [Built-in Pipes](https://docs.nestjs.com/pipes#built-in-pipes)
*
* @publicApi
*/
export declare class DefaultValuePipe<T = any, R = any> implements PipeTransform<T, T | R> {
protected readonly defaultValue: R;
constructor(defaultValue: R);
transform(value?: T, _metadata?: ArgumentMetadata): T | R;
}