We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7343716 commit 01e7939Copy full SHA for 01e7939
README.md
@@ -566,6 +566,29 @@ export class Photo {
566
567
Library will handle proper transformation automatically.
568
569
+ES6 collections `Set` and `Map` also require the `@Type` decorator:
570
+
571
+```typescript
572
+export class Skill {
573
+ name: string;
574
+}
575
576
+export class Weapon {
577
578
+ range: number;
579
580
581
+export class Player {
582
583
584
+ @Type(() => Skill)
585
+ skills: Set<Skill>;
586
587
+ @Type(() => Weapon)
588
+ weapons: Map<string, Weapon>;
589
590
+```
591
592
## Additional data transformation
593
594
You can perform additional data transformation using `@Transform` decorator.
0 commit comments