Transforming map values which are an array of objects with class-tranformer

42 views Asked by At

I have class like this:

class ValueType {
  field1: number,
  field2: string
}

class Demo {
  someField: Map<number, ValueType[]>
}

How can I transform values of map?

I have tried annotating it with @Type(() => ValueType)

0

There are 0 answers