UNPKG

472 BTypeScriptView Raw
1import { ArgumentMetadata, PipeTransform } from '../interfaces/features/pipe-transform.interface';
2/**
3 * Defines the built-in DefaultValue Pipe
4 *
5 * @see [Built-in Pipes](https://docs.nestjs.com/pipes#built-in-pipes)
6 *
7 * @publicApi
8 */
9export declare class DefaultValuePipe<T = any, R = any> implements PipeTransform<T, T | R> {
10 protected readonly defaultValue: R;
11 constructor(defaultValue: R);
12 transform(value?: T, _metadata?: ArgumentMetadata): T | R;
13}