import { defaultMetadataStorage } from '../default-storage.const' ; import { SanitationOptions } from '../interfaces' ; import { SanitizeTypes } from '../enums' ; /**
 * Indicates if nested object should be sanitized as well.
 */ export function SanitizeNested ( annotationOptions = { } ) { return function ( target , propertyName ) { defaultMetadataStorage . addMetadata ( { type : SanitizeTypes . NESTED , target : target as Function , propertyName : propertyName , each : annotationOptions . each , } , 'sanitation' ) ; } ; }