feat(common): change private modifer on built-in pipes to protected

This commit is contained in:
Micael Levi (@micalevisk)
2022-04-05 22:44:24 -04:00
parent 8864699539
commit d884e569f0
2 changed files with 2 additions and 2 deletions

View File

@@ -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 (

View File

@@ -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,