import { Transform } from 'class-transformer' ; import { HeadType } from '../helpers/head-type' ; param transformFn see https export const TransformToDynamo = ( transformFn ) => { return Transform ( transformFn , { toPlainOnly : true , } ) ; } ;