diff --git a/packages/common/pipes/default-value.pipe.ts b/packages/common/pipes/default-value.pipe.ts index 4ce7d970174..65716f49789 100644 --- a/packages/common/pipes/default-value.pipe.ts +++ b/packages/common/pipes/default-value.pipe.ts @@ -16,7 +16,7 @@ import { isNil, isNumber } from '../utils/shared.utils'; export class DefaultValuePipe implements PipeTransform { - constructor(private readonly defaultValue: R) {} + constructor(protected readonly defaultValue: R) {} transform(value?: T, _metadata?: ArgumentMetadata): T | R { if ( diff --git a/packages/common/pipes/parse-array.pipe.ts b/packages/common/pipes/parse-array.pipe.ts index 6ede5cf0b83..c9ed1c67db6 100644 --- a/packages/common/pipes/parse-array.pipe.ts +++ b/packages/common/pipes/parse-array.pipe.ts @@ -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,