mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
feat(common): change private modifer on built-in pipes to protected
This commit is contained in:
@@ -16,7 +16,7 @@ import { isNil, isNumber } from '../utils/shared.utils';
|
||||
export class DefaultValuePipe<T = any, R = any>
|
||||
implements PipeTransform<T, T | R>
|
||||
{
|
||||
constructor(private readonly defaultValue: R) {}
|
||||
constructor(protected readonly defaultValue: R) {}
|
||||
|
||||
transform(value?: T, _metadata?: ArgumentMetadata): T | R {
|
||||
if (
|
||||
|
||||
@@ -36,7 +36,7 @@ export class ParseArrayPipe implements PipeTransform {
|
||||
protected readonly validationPipe: ValidationPipe;
|
||||
protected exceptionFactory: (error: string) => any;
|
||||
|
||||
constructor(@Optional() private readonly options: ParseArrayOptions = {}) {
|
||||
constructor(@Optional() protected readonly options: ParseArrayOptions = {}) {
|
||||
this.validationPipe = new ValidationPipe({
|
||||
transform: true,
|
||||
validateCustomDecorators: true,
|
||||
|
||||
Reference in New Issue
Block a user