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.
2 parents 4a99a5b + 01e7939 commit 6f2b341Copy full SHA for 6f2b341
README.md
@@ -565,6 +565,29 @@ export class Photo {
565
566
Library will handle proper transformation automatically.
567
568
+ES6 collections `Set` and `Map` also require the `@Type` decorator:
569
+
570
+```typescript
571
+export class Skill {
572
+ name: string;
573
+}
574
575
+export class Weapon {
576
577
+ range: number;
578
579
580
+export class Player {
581
582
583
+ @Type(() => Skill)
584
+ skills: Set<Skill>;
585
586
+ @Type(() => Weapon)
587
+ weapons: Map<string, Weapon>;
588
589
+```
590
591
## Additional data transformation
592
593
### Basic usage
0 commit comments