| 14 | } |
| 15 | |
| 16 | @Type() |
| 17 | class User |
| 18 | { |
| 19 | @Property(() => String, { alias: 'username' }) public name?: string; |
| 20 | @Property(() => String) public email?: string; |
| 21 | @Property(() => String, { deserializedDefaultValue: 'd', useDefaultValue: true }) public status?: string; |
| 22 | @Property(() => String, { defaultValue: () => 'e', useDefaultValue: true }) public login?: string; |
| 23 | @Property(() => String, { useImplicitConversion: true }) public description?: string; |
| 24 | @Property(() => String, { serializable: true }) public about?: string; |
| 25 | @Property(() => String, { deserializable: true }) public device?: string; |
| 26 | } |
| 27 | |
| 28 | @Type() |
| 29 | class Message |